summaryrefslogtreecommitdiffstats
path: root/Emacs.org
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-12-31 23:13:21 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2022-12-31 23:13:21 +0100
commit991712cc6a862e6166392ab8400cd67ee732f11d (patch)
treefcbca16dbbecb4edede6a0281d5f4411ee153e0f /Emacs.org
parent0f4bbda32a224255f65a544ceb42ffea73913739 (diff)
downloaddotfiles-991712cc6a862e6166392ab8400cd67ee732f11d.tar.gz
dotfiles-991712cc6a862e6166392ab8400cd67ee732f11d.zip
Update emacs config
Diffstat (limited to 'Emacs.org')
-rw-r--r--Emacs.org21
1 files changed, 18 insertions, 3 deletions
diff --git a/Emacs.org b/Emacs.org
index 8b61e73..f2a3c34 100644
--- a/Emacs.org
+++ b/Emacs.org
@@ -236,6 +236,12 @@
236 "\\`\\([^T]\\|T\\($\\|[^A]\\|A\\($\\|[^G]\\|G\\($\\|[^S]\\|S.\\)\\)\\)\\).*"))) 236 "\\`\\([^T]\\|T\\($\\|[^A]\\|A\\($\\|[^G]\\|G\\($\\|[^S]\\|S.\\)\\)\\)\\).*")))
237 (call-interactively 'counsel-switch-buffer))) 237 (call-interactively 'counsel-switch-buffer)))
238 238
239 (defvar jd/load-theme-hook nil)
240 (defun jd/load-theme ()
241 (interactive)
242 (counsel-load-theme)
243 (run-hooks 'jd/load-theme-hook))
244
239 (use-package ivy 245 (use-package ivy
240 :diminish 246 :diminish
241 :bind 247 :bind
@@ -259,8 +265,9 @@
259#+begin_src emacs-lisp 265#+begin_src emacs-lisp
260 266
261 (jd/leader-key-def 267 (jd/leader-key-def
262 "t" '(:ignore t :which-key "Toogle") 268 "t" '(:ignore t :which-key "Toggle")
263 "tt" '(counsel-load-theme :which-key "Choose theme")) 269 "tT" '(toggle-truncate-lines :which-key "Toggle truncate lines")
270 "tt" '(jd/load-theme :which-key "Choose theme"))
264 271
265 (jd/leader-key-def 272 (jd/leader-key-def
266 "bb" '(jd/switch-buffer :which-key "Buffer switch") 273 "bb" '(jd/switch-buffer :which-key "Buffer switch")
@@ -391,6 +398,14 @@
391* Org 398* Org
392** Org-mode setup 399** Org-mode setup
393 400
401*Define variables*
402
403#+begin_src emacs-lisp
404 (setq jd/org-home "~/Documents/Org")
405 (setq jd/org-roam-home (concat jd/org-home "/roam"))
406 (setq jd/org-roam-daily-home (concat jd/org-home "/roam/daily"))
407#+end_src
408
394#+begin_src emacs-lisp 409#+begin_src emacs-lisp
395 410
396 (defun jd/org-mode-setup () 411 (defun jd/org-mode-setup ()
@@ -603,7 +618,7 @@
603 618
604 (use-package org-roam 619 (use-package org-roam
605 :custom 620 :custom
606 (org-roam-directory (file-truename "~/Documents/Org/roam/")) 621 (org-roam-directory (file-truename jd/org-roam-home))
607 :bind (("C-c n l" . org-roam-buffer-toggle) 622 :bind (("C-c n l" . org-roam-buffer-toggle)
608 ("C-c n f" . org-roam-node-find) 623 ("C-c n f" . org-roam-node-find)
609 ("C-c n g" . org-roam-graph) 624 ("C-c n g" . org-roam-graph)