summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-01-05 11:23:47 -0600
committerCase Duckworth2022-01-05 11:23:47 -0600
commita59178fc7b15645ee4da04e649ef205b4a160bcb (patch)
tree5498b5f2a1bd50cad632a5adcd3c024d7843fa7a
parentAdd wrap-region and modify expand-region to match (diff)
downloademacs-a59178fc7b15645ee4da04e649ef205b4a160bcb.tar.gz
emacs-a59178fc7b15645ee4da04e649ef205b4a160bcb.zip
Add +lookup
-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