From e1baa0e6b0677f0900ec73c82ae1dc41a6ede56e Mon Sep 17 00:00:00 2001 From: Random936 Date: Sun, 17 Sep 2023 19:56:02 -0700 Subject: [PATCH] Added functions.org file and config reload macro to general --- .emacs.d/config.org | 14 ++++++++++++-- .emacs.d/functions.org | 4 ++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .emacs.d/functions.org diff --git a/.emacs.d/config.org b/.emacs.d/config.org index b51eacb..d4ca5b1 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -383,9 +383,14 @@ General allows you to setup a prefix key easily. This makes it really easy to se ; Example of a keybinding should be changed later "t" '(counsel-load-theme :which-key "Choose theme") "v" '(multi-vterm :which-key "Open vterm terminal") - "e" '(eshell :which-key "Open eshell terminal") "r" '(rename-buffer :which-key "Rename buffer") - "oa" '(org-agenda :which-key "Org agenda"))) + + ; Org mode related keybindings + "oa" '(org-agenda :which-key "Org agenda") + + ; Emacs related keybindings + "er" '((lambda () (interactive) (load-file "~/.emacs")) :which-key "Reload emacs config") + "es" '(eshell :which-key "Open eshell terminal"))) #+end_src *** Evil @@ -931,4 +936,9 @@ This is the section to include imports from other files. ;(let ((exwm-org-file "~/.emacs.d/exwm.org")) ;(when (file-exists-p exwm-org-file) ; (org-babel-load-file exwm-org-file))) + +;; Load org file containing custom Elisp functions. +(let ((functions-file "~/.emacs.d/functions.org")) + (when (file-exists-p functions-file) + (org-babel-load-file functions-file))) #+end_src diff --git a/.emacs.d/functions.org b/.emacs.d/functions.org new file mode 100644 index 0000000..5e3ffc1 --- /dev/null +++ b/.emacs.d/functions.org @@ -0,0 +1,4 @@ +#+TITLE: Custom Elisp Functions + +As of now, I haven't added anything here, though I do expect to start adding some custom functions as I learn more about Elisp. +