blob: 6c7a638243f7ac1f7043556058d178c4243e03a9 (
plain)
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
|
;;; ~/Dotfiles/Doom/.config/doom/elisp/+keymap.el -*- lexical-binding: t; -*-
;;; Leader
(map!
:leader
;; Single binds
"SPC" #'execute-extended-command
"!" #'async-shell-command
"T" #'eshell
"C" #'calc
"-" #'dired-jump
"_" #'dired-jump-other-window
"w" #'ace-window
;; Personal
(:prefix ("m" . "personal")
:desc "Open books" "b" #'(lambda () (interactive) (dired (concat org-directory "/Books"))); I like my books
:desc "Convert auto-fill" "f" #'dx:org/fill-to-long-lines
:desc "Change theme" "t" #'dx:themes/set-new-theme ; From my own collection
:desc "Generate template" "g" #'+gentemplate/generate-template) ; From my own collection
;; Projectile
(:after projectile
(:prefix "f"
"g" #'projectile-regenerate-tags
"p" #'(lambda () (interactive) (doom-project-find-file "~/Dotfiles")))
">" #'projectile-switch-to-buffer)
;; Search
(:prefix "s"
(:after counsel-etags
"t" #'counsel-etags-find-tag)
(:after counsel
"s" #'counsel-grep-or-swiper
"r" #'counsel-rg))
;; Code
(:prefix "c"
"m" #'+make/run))
;;; Non leader
(map!
(:after evil
"TAB" #'evil-jump-item)
"M-v" #'dx:newline
"M-V" #'(lambda () (interactive) (dx:newline 1)))
;;; Remaps
(define-key!
[remap compile] #'compile)
|