diff --git a/README.org b/README.org index eba127b0..60bbd80b 100644 --- a/README.org +++ b/README.org @@ -372,6 +372,14 @@ This evil-collection package includes a lot of other evil based things. :init (general-evil-setup) :config + (defun chris/edit-emacs-config () + "open the emacs config to edit" + (interactive) + (find-file (expand-file-name "README.org" user-emacs-directory))) + (defun chris/open-bible () + "find a bible to open" + (interactive) + (find-file "~/org/bibles/")) (general-create-definer chris/leader-keys :keymaps '(normal visual emacs) :prefix "SPC") @@ -396,10 +404,11 @@ This evil-collection package includes a lot of other evil based things. "tt" '(consult-theme :which-key "choose theme") "tl" '(toggle-truncate-lines :which-key "truncate lines") "ff" '(find-file :which-key "find file") - "fb" '((find-file ~/org/bibles/) :which-key "find bible book") + "fb" '(chris/open-bible :which-key "find bible book") "fr" '(consult-recent-file :which-key "recent file") "fs" '(save-buffer :which-key "save") - "fe" '(consult-file-externally :which-key "find file externally") + "fE" '(consult-file-externally :which-key "find file externally") + "fe" '(chris/edit-emacs-config :which-key "open config") "hf" '(helpful-callable :which-key "describe-function") "hv" '(helpful-variable :which-key "describe-variable") "hk" '(helpful-key :which-key "describe-key") diff --git a/init.el b/init.el index 03e8f640..61f8950f 100644 --- a/init.el +++ b/init.el @@ -205,6 +205,14 @@ :init (general-evil-setup) :config + (defun chris/edit-emacs-config () + "open the emacs config to edit" + (interactive) + (find-file (expand-file-name "README.org" user-emacs-directory))) + (defun chris/open-bible () + "find a bible to open" + (interactive) + (find-file "~/org/bibles/")) (general-create-definer chris/leader-keys :keymaps '(normal visual emacs) :prefix "SPC") @@ -229,10 +237,11 @@ "tt" '(consult-theme :which-key "choose theme") "tl" '(toggle-truncate-lines :which-key "truncate lines") "ff" '(find-file :which-key "find file") - "fb" '((find-file ~/org/bibles/) :which-key "find bible book") + "fb" '(chris/open-bible :which-key "find bible book") "fr" '(consult-recent-file :which-key "recent file") "fs" '(save-buffer :which-key "save") - "fe" '(consult-file-externally :which-key "find file externally") + "fE" '(consult-file-externally :which-key "find file externally") + "fe" '(chris/edit-emacs-config :which-key "open config") "hf" '(helpful-callable :which-key "describe-function") "hv" '(helpful-variable :which-key "describe-variable") "hk" '(helpful-key :which-key "describe-key") @@ -2033,8 +2042,7 @@ interfere with the default `bongo-playlist-buffer'." '(safe-local-variable-values '((aggressive-indent-mode) (projectile-project-run-cmd . "./build/bin/presenter") - (projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make --dir build/") - (eval org-odt-styles-file "/home/chris/org/tfcexpenses2020.odt")))) + (projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make --dir build/")))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.