about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el3
-rw-r--r--lisp/+lookup.el17
2 files changed, 20 insertions, 0 deletions
diff --git a/init.el b/init.el index 49e549e..e93ea19 100644 --- a/init.el +++ b/init.el
@@ -59,6 +59,9 @@
59(setup (:require +key) 59(setup (:require +key)
60 (+ensure-after-init #'+key-global-mode)) 60 (+ensure-after-init #'+key-global-mode))
61 61
62(setup (:require +lookup)
63 (:+key "C-c l" +lookup-map))
64
62(setup (:require auth-source) 65(setup (:require auth-source)
63 (:option auth-sources (list (private/ "authinfo")))) 66 (:option auth-sources (list (private/ "authinfo"))))
64 67
diff --git a/lisp/+lookup.el b/lisp/+lookup.el new file mode 100644 index 0000000..dfa0180 --- /dev/null +++ b/lisp/+lookup.el
@@ -0,0 +1,17 @@
1;;; +lookup.el -*- lexical-binding: t; -*-
2
3;;; Commentary:
4
5;; I look up a lot of things in Emacs. Let's bind them all to an easy-to-use
6;; keymap.
7
8;;; Code:
9
10(defvar +lookup-map (let ((map (make-sparse-keymap)))
11 (define-key map "f" #'find-function)
12 (define-key map "l" #'find-library)
13 map)
14 "Keymap for looking up things.")
15
16(provide '+lookup)
17;;; +lookup.el ends here