From 991712cc6a862e6166392ab8400cd67ee732f11d Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sat, 31 Dec 2022 23:13:21 +0100 Subject: Update emacs config --- Emacs.org | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'Emacs.org') diff --git a/Emacs.org b/Emacs.org index 8b61e73..f2a3c34 100644 --- a/Emacs.org +++ b/Emacs.org @@ -236,6 +236,12 @@ "\\`\\([^T]\\|T\\($\\|[^A]\\|A\\($\\|[^G]\\|G\\($\\|[^S]\\|S.\\)\\)\\)\\).*"))) (call-interactively 'counsel-switch-buffer))) + (defvar jd/load-theme-hook nil) + (defun jd/load-theme () + (interactive) + (counsel-load-theme) + (run-hooks 'jd/load-theme-hook)) + (use-package ivy :diminish :bind @@ -259,8 +265,9 @@ #+begin_src emacs-lisp (jd/leader-key-def - "t" '(:ignore t :which-key "Toogle") - "tt" '(counsel-load-theme :which-key "Choose theme")) + "t" '(:ignore t :which-key "Toggle") + "tT" '(toggle-truncate-lines :which-key "Toggle truncate lines") + "tt" '(jd/load-theme :which-key "Choose theme")) (jd/leader-key-def "bb" '(jd/switch-buffer :which-key "Buffer switch") @@ -391,6 +398,14 @@ * Org ** Org-mode setup +*Define variables* + +#+begin_src emacs-lisp + (setq jd/org-home "~/Documents/Org") + (setq jd/org-roam-home (concat jd/org-home "/roam")) + (setq jd/org-roam-daily-home (concat jd/org-home "/roam/daily")) +#+end_src + #+begin_src emacs-lisp (defun jd/org-mode-setup () @@ -603,7 +618,7 @@ (use-package org-roam :custom - (org-roam-directory (file-truename "~/Documents/Org/roam/")) + (org-roam-directory (file-truename jd/org-roam-home)) :bind (("C-c n l" . org-roam-buffer-toggle) ("C-c n f" . org-roam-node-find) ("C-c n g" . org-roam-graph) -- cgit v1.2.3