diff options
Diffstat (limited to 'Emacs.org')
-rw-r--r-- | Emacs.org | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -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) |