summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-02-17 13:34:32 -0500
committerJakob L. Kreuze2019-02-17 13:34:32 -0500
commit4049842f3aa42aff6f37df932c7fa83423f600b1 (patch)
tree95887eafacb4e623f9d4beef5e0cd802593ca36c /jakob.org
parent60af3919d45761d1fc2d8bb9e70f60192d5b34a9 (diff)
Keybindings for quickly getting to my config file
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org34
1 files changed, 25 insertions, 9 deletions
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

© 2015 - 2026 Jakob L. Kreuze