diff --git a/development/flycheck_cpp.el b/development/flycheck_cpp.el deleted file mode 100644 index cdfd983..0000000 --- a/development/flycheck_cpp.el +++ /dev/null @@ -1,43 +0,0 @@ -;;; development/cpp.el -*- lexical-binding: t; -*- - -;; 4. Optional: Fine-tuning Clangd -;; These arguments are passed directly to the clangd binary. -(setq lsp-clients-clangd-args - '("-j=4" - "--background-index" - "--clang-tidy" - "--completion-style=detailed" - "--header-insertion=never" - "--header-insertion-decorators=0")) - -(after! lsp-clangd - (set-lsp-priority! 'clangd 2)) ; Ensure clangd is preferred over ccls - -;; Formatting for c++ -;; This tells Doom to use the LSP server (clangd) for formatting instead of -;; a separate clang-format call via apheleia. -(setq-hook! '(c-mode-hook c++-mode-hook) +format-with-lsp t) - -;; Formatting as I type -;; This enables real-time formatting as you type trigger characters like ; or } -(after! lsp-mode - (setq lsp-enable-on-type-formatting t)) - -;; Ensure cc-mode settings align with clangd/clang-format -;; While clangd handles most things, basic Emacs indentation settings are -;; still useful as a fallback or for initial indentation. -(after! cc-mode - (setq-default c-basic-offset 2) - (c-add-style "doom-cpp" - '("llvm" - (c-basic-offset . 2) - (c-offsets-alist . ((innamespace . 0) - (access-label . -) - (arglist-intro . +) - (arglist-cont-nonempty . +))))) - (add-hook! '(c-mode-hook c++-mode-hook) - (c-set-style "doom-cpp"))) - -;; Add C++ documentation support -(set-docsets! 'c++-mode "C++") -(set-docsets! 'c-mode "C") diff --git a/snippets/org-mode/anki-basic b/snippets/org-mode/anki-basic index dec9234..a35c2c7 100644 --- a/snippets/org-mode/anki-basic +++ b/snippets/org-mode/anki-basic @@ -2,14 +2,13 @@ # name: Anki Basic (Subheadings) # key: ab # -- -* ${1:Title} :study_card: +* ${1:Title} :PROPERTIES: :ANKI_NOTE_TYPE: Basic -:ANKI_DECK: ${2:Default} :END: ** Front -$3 +$2 ** Back -$4 \ No newline at end of file +$3 \ No newline at end of file diff --git a/snippets/org-mode/anki-multiline b/snippets/org-mode/anki-multiline deleted file mode 100644 index e50fc99..0000000 --- a/snippets/org-mode/anki-multiline +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: Anki Multiline (Org-Anki Standard) -# key: am -# -- -* ${1:Card Title/ID} :study_card: -:PROPERTIES: -:ANKI_NOTE_TYPE: Basic -:ANKI_BACK: ${3:Short Answer or "See below"} -:END: - -${2:Detailed multiline question goes here...}