aboutsummaryrefslogtreecommitdiffstats
path: root/doom-emacs/.config/doom/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'doom-emacs/.config/doom/config.org')
-rw-r--r--doom-emacs/.config/doom/config.org51
1 files changed, 43 insertions, 8 deletions
diff --git a/doom-emacs/.config/doom/config.org b/doom-emacs/.config/doom/config.org
index e6fb8df..7f00a60 100644
--- a/doom-emacs/.config/doom/config.org
+++ b/doom-emacs/.config/doom/config.org
@@ -8,6 +8,13 @@
doom-variable-pitch-font (font-spec :family "Fira Code" :size 16))
#+END_SRC
+* Themes
+#+BEGIN_SRC emacs-lisp
+(use-package! paper-theme)
+(use-package! modus-operandi-theme)
+(use-package! modus-vivendi-theme)
+#+END_SRC
+
* Projectile
Projectile Path
#+BEGIN_SRC emacs-lisp
@@ -35,15 +42,16 @@ Projectile Path
Org capture
#+BEGIN_SRC emacs-lisp
(after! org
+ (defvar org-capture-todo-file "~/org/todo.org" )
(setq org-capture-templates '(("t" "Personal todo" entry
- (file+headline +org-capture-todo-file "Inbox")
+ (file+headline org-capture-todo-file "Inbox")
"* TODO %?\n%i\n%a" :prepend t :kill-buffer t)
("n" "Personal notes" entry
(file+headline +org-capture-notes-file "Inbox")
"* %u %?\n%i\n%a" :prepend t :kill-buffer t)
("p" "Templates for projects")
("pt" "Project todo" entry
- (file+headline +org-capture-project-todo-file "Inbox")
+ (file+headline org-capture-project-todo-file "Inbox")
"* TODO %?\n%i\n%a" :prepend t :kill-buffer t)
("pn" "Project notes" entry
(file+headline +org-capture-project-notes-file "Inbox")
@@ -119,11 +127,38 @@ Do what I mean target allows dired to use window context for copying and moving
(setq dired-dwim-target t)
#+END_SRC
* Laguages
-Typescript
+c++
+#+BEGIN_SRC emacs-lisp
+(use-package! cmake-ide
+ :after rtags
+ :config
+ (require 'rtags)
+ (cmake-ide-setup))
+#+END_SRC
+
+* LSP
+** C++
+#+BEGIN_SRC emacs-lisp
+(use-package! eglot
+ :config
+ (add-to-list 'eglot-server-programs '((c++-mode c-mode) "clangd"))
+ (add-hook! (c++-mode c-mode) 'eglot-ensure))
+#+END_SRC
+** Java
+#+BEGIN_SRC emacs-lisp
+;; (after! eglot
+ ;; (defconst my-eclipse-jdt-home "/home/peter/.emacs.d/.cache/lsp/eclipse.jdt.ls/plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar")
+ ;; (defun my-eglot-eclipse-jdt-contact (interactive)
+ ;; "contact with the jdt server input INETRACTIVE."
+ ;; (let ((cp (getenv "CLASSPATH")))
+ ;; (setenv "CLASSPATH" (concat my-eclipse-jdt-home ":" cp))
+ ;; (unwind-protect (eglot--eclipse-jdt-contact nil)
+ ;; (setenv "CLASSPATH" cp))))
+ ;; (setcdr (assq 'java-mode eglot-server-programs) #'my-eglot-eclipse-jdt-contact)
+ ;; (add-hook 'java-mode-hook 'eglot-ensure))
+#+END_SRC
+
+* Ledger
#+BEGIN_SRC emacs-lisp
-(use-package! tide
- :after (typescript-mode company flycheck)
- :hook ((typescript-mode . tide-setup)
- (typescript-mode . tide-hl-identifier-mode)
- (before-save . tide-format-before-save)))
+(setq ledger-default-date-format "%Y-%m-%d")
#+END_SRC