From 4049842f3aa42aff6f37df932c7fa83423f600b1 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 17 Feb 2019 13:34:32 -0500 Subject: Keybindings for quickly getting to my config file --- init.el | 3 ++- jakob.org | 34 +++++++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/init.el b/init.el index adbc988..c131d6b 100644 --- a/init.el +++ b/init.el @@ -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") diff --git a/jakob.org b/jakob.org index 3f8aaed..3b5de42 100644 --- a/jakob.org +++ b/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 -- cgit v1.3