-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path+map.el
55 lines (50 loc) · 1.81 KB
/
+map.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
;;; +map.el -*- lexical-binding: t; -*-
(when (modulep! :editor evil)
(setq! evil-disable-insert-state-bindings t)
(set-evil-initial-state! '(pdf-annot-list-mode) 'emacs)
(evil-collection-init '(osx-dictionary))
(map! :i "C-SPC" nil
:i "C-@" nil
(:prefix "C-x"
:i "C-l" nil
:i "C-k" nil
:i "C-f" nil
:i "C-]" nil
:i "s" nil
:i "C-s" nil
:i "C-o" nil
:i "C-n" nil
:i "C-p" nil)
(:after evil-org :map evil-org-mode-map
:i "C-l" nil
:i "C-h" nil
:i "C-k" nil
:i "C-j" nil)))
(map! (:leader
(:prefix ("A" . "app")
(:when (modulep! :app eaf)
:desc "EAF" "e" #'eaf)
(:when (modulep! :app telega)
:desc "Telega" "t" telega-prefix-map)
(:when (modulep! :app leetcode)
:desc "LeetCode" "l" #'leetcode)
(:when (modulep! :app rss)
:desc "Elfeed RSS" "r" #'elfeed)
(:when (modulep! :app emms)
(:prefix ("m" . "Multimedia")
:desc "Emms" "m" #'emms-smart-browse
(:when (modulep! :app emms +ncm)
:desc "Netease Cloud Music" "n" #'netease-cloud-music))))
(:prefix ("d" . "dictionary")
(:when (modulep! :study dict)
:desc "Bing" "b" #'bing-dict-brief)
(:when (modulep! :study dict +anki)
:desc "Anki" "a" #'anki-vocabulary)
(:when (and (modulep! :tools lookup +dictionary) IS-MAC)
:desc "OSX" "o" #'osx-dictionary-search-input))
(:prefix ("n" . "notes")
(:prefix ("r" . "roam")
(:when (modulep! :study review +roam-server)
:desc "Open server" "o" #'org-roam-server-open))))
(:map help-map
"dU" #'doom/upgrade))