diff options
| -rw-r--r-- | init.el | 3 | ||||
| -rw-r--r-- | jakob.org | 34 |
2 files changed, 27 insertions, 10 deletions
@@ -28,6 +28,7 @@ located at PATH." (set-buffer buffer) (apply 'insert (reverse body-list)) (eval-buffer) - (kill-buffer)))) + (kill-buffer))) + (message "Successfully evaluated %s" path)) (eval-document "~/.emacs.d/jakob.org") @@ -112,14 +112,6 @@ And require the libraries that I use throughout this file. (require 'cl) #+END_SRC -** Lisp Interaction - -Don't omit information when lists nest too deep. - -#+BEGIN_SRC elisp -(setq eval-expression-print-level nil) -#+END_SRC - ** Quality of Life Use a consistent confirmation dialog of "y or n". @@ -208,6 +200,23 @@ Unbind =C-z= and =C-x C-z= so I'm not accidentally calling =suspend-frame=. (global-unset-key (kbd "C-x C-z")) #+END_SRC +Create some bindings for quickly getting to this configuration file. + +#+BEGIN_SRC elisp +(defun goto-config () + "Find the literate config file." + (interactive) + (find-file "~/.emacs.d/jakob.org")) + +(defun reload-config () + "Re-evaluate the literate config file." + (interactive) + (eval-document "~/.emacs.d/jakob.org")) + +(bind-key "C-c e" #'goto-config) +(bind-key "C-c r" #'reload-config) +#+END_SRC + * Custom Functionality This section is for any nontrivial Elisp functions written by me. @@ -1744,5 +1753,12 @@ Enable [[company]]. :hook (lisp-interaction-mode . company-mode) - (emacs-lisp-mode . company-mode)) + (emacs-lisp-mode . company-mode) +#+END_SRC + +Don't omit information when lists nest too deep. + +#+BEGIN_SRC elisp + :init + (setq eval-expression-print-level nil)) #+END_SRC |