about summary refs log tree commit diff stats
path: root/emacs-prelude/personal
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-07-23 13:06:29 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-07-23 13:06:29 +0100
commitfeec02aa28e9972f4b6e3f8465f4c5dc7be43fc7 (patch)
tree11f8b4d978363de2f21d2c1012680e1bdc7c45af /emacs-prelude/personal
parent769926dee8bed6be8278dfb3f540ff0d376fbbc6 (diff)
downloaddotfiles-feec02aa28e9972f4b6e3f8465f4c5dc7be43fc7.tar.gz
More emacs.d updates
Diffstat (limited to 'emacs-prelude/personal')
-rw-r--r--emacs-prelude/personal/lisp/init-completion.el11
-rw-r--r--emacs-prelude/personal/lisp/init-git.el4
-rw-r--r--emacs-prelude/personal/lisp/init-lsp.el5
-rw-r--r--emacs-prelude/personal/lisp/init-misc.el5
-rw-r--r--emacs-prelude/personal/lisp/init-prelude.el11
-rw-r--r--emacs-prelude/personal/lisp/init-ui.el10
-rw-r--r--emacs-prelude/personal/personal.el3
7 files changed, 32 insertions, 17 deletions
diff --git a/emacs-prelude/personal/lisp/init-completion.el b/emacs-prelude/personal/lisp/init-completion.el
index bbc5e21..c43d1b4 100644
--- a/emacs-prelude/personal/lisp/init-completion.el
+++ b/emacs-prelude/personal/lisp/init-completion.el
@@ -175,6 +175,7 @@
          ("C-c c g" . consult-grep)
          ("C-c c G" . consult-git-grep)
          ("C-c c r" . consult-smart-ripgrep)
+         ("C-c r" . consult-smart-ripgrep)
          ("C-c c R" . consult-ripgrep-auto-preview)
          ("C-c c C-M-r" . consult-iripgrep)
          ("C-c c M-r" . consult-ripgrep-unrestricted)
@@ -283,8 +284,6 @@
   :bind (("M-A" . marginalia-cycle)
          :map minibuffer-local-map
          ("M-A" . marginalia-cycle))
-  ;:custom
-  ;(marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light nil))
   :init
   (marginalia-mode))
 
@@ -330,8 +329,10 @@
                          (symbol-name s))))
     (affe-grep dir initial))
   :bind
-  (("C-c c a g" . affe-grep)
-   ("C-c c a f" . affe-find)
-   ("C-c c a s" . my/affe-grep-symbol-at-point)))
+  (("C-#" . affe-grep)
+   ("C-~" . my/affe-grep-symbol-at-point)
+   ("C-c z" . affe-find))
+  :custom
+  (affe-find-command "fd --color never -t f"))
 
 (provide 'init-completion)
diff --git a/emacs-prelude/personal/lisp/init-git.el b/emacs-prelude/personal/lisp/init-git.el
index 041ff8e..c63de39 100644
--- a/emacs-prelude/personal/lisp/init-git.el
+++ b/emacs-prelude/personal/lisp/init-git.el
@@ -16,7 +16,8 @@
                 (vc-refresh-state)))))
   :config
   (key-chord-define-global "UU" 'my/magit-set-upstream)
-  (key-chord-define-global "RR" 'my/magit-refresh-state))
+  (key-chord-define-global "RR" 'my/magit-refresh-state)
+  :custom (magit-diff-refine-hunk 'all))
 
 (prelude-require-package 'forge)
 (use-package forge
@@ -33,4 +34,3 @@
   ("C-c j r" . git-gutter:revert-hunk))
 
 (provide 'init-git)
-
diff --git a/emacs-prelude/personal/lisp/init-lsp.el b/emacs-prelude/personal/lisp/init-lsp.el
index 6568229..9f8f1cd 100644
--- a/emacs-prelude/personal/lisp/init-lsp.el
+++ b/emacs-prelude/personal/lisp/init-lsp.el
@@ -21,7 +21,8 @@
         lsp-enable-indentation nil
         lsp-completion-enable nil)
   (key-chord-define-global "QQ" 'lsp-find-references)
-  (key-chord-define-global "GG" 'lsp-find-definition))
+  (key-chord-define-global "PP" 'lsp-peek-find-references)
+  (key-chord-define-global "GG" 'lsp-find-definition)
+  (key-chord-define-global "DD" 'lsp-peek-find-definition))
 
 (provide 'init-lsp)
-
diff --git a/emacs-prelude/personal/lisp/init-misc.el b/emacs-prelude/personal/lisp/init-misc.el
index 63edbcc..e25556d 100644
--- a/emacs-prelude/personal/lisp/init-misc.el
+++ b/emacs-prelude/personal/lisp/init-misc.el
@@ -28,4 +28,9 @@
                ("M-[" . multi-vterm-prev)
                ("M-]" . multi-vterm-next))))
 
+(use-package dired
+  :ensure nil
+  :custom
+  (dired-kill-when-opening-new-dired-buffer t))
+
 (provide 'init-misc)
diff --git a/emacs-prelude/personal/lisp/init-prelude.el b/emacs-prelude/personal/lisp/init-prelude.el
index d52b2ec..fa4895b 100644
--- a/emacs-prelude/personal/lisp/init-prelude.el
+++ b/emacs-prelude/personal/lisp/init-prelude.el
@@ -24,9 +24,13 @@
          :weight bold :height 2.5 :box (:line-width 10 :color "red"))))))
 
 (use-package crux
-  ;; allow other things to use C-c s
-  :init (unbind-key "C-c s" prelude-mode-map)
-  :bind (:map prelude-mode-map ("C-c S" . crux-swap-windows)))
+  ;; allow other things to use C-c s and C-c r
+  :init
+  (unbind-key "C-c s" prelude-mode-map)
+  (unbind-key "C-c r" prelude-mode-map)
+  :bind (:map prelude-mode-map
+              (("C-c C-s" . crux-swap-windows)
+               ("C-c C-r" . crux-rename-file-and-buffer))))
 
 (use-package key-chord
   :init
@@ -37,4 +41,3 @@
 (diminish 'prelude-mode)
 
 (provide 'init-prelude)
-
diff --git a/emacs-prelude/personal/lisp/init-ui.el b/emacs-prelude/personal/lisp/init-ui.el
index c382469..608591c 100644
--- a/emacs-prelude/personal/lisp/init-ui.el
+++ b/emacs-prelude/personal/lisp/init-ui.el
@@ -17,6 +17,11 @@
     (highlight-symbol-at-point)))
 (global-set-key (kbd "s-.") 'my/toggle-highlight-symbol-at-point)
 
+(unless (eq system-type 'darwin)
+  (prelude-require-package 'idle-highlight-mode)
+  (use-package idle-highlight-mode
+    :hook (prog-mode . idle-highlight-mode)))
+
 (use-package paren
   :config
   (show-paren-mode +1))
@@ -30,7 +35,10 @@
 (prelude-require-package 'ctrlf)
 (use-package ctrlf
   :config
-  (ctrlf-mode +1))
+  (ctrlf-mode +1)
+  :bind
+  ("C-*" . ctrlf-forward-symbol-at-point)
+  ("M-s M-s" . ctrlf-toggle-symbol))
 
 (prelude-require-package 'buffer-move)
 (use-package buffer-move
diff --git a/emacs-prelude/personal/personal.el b/emacs-prelude/personal/personal.el
index 514afe3..dd09228 100644
--- a/emacs-prelude/personal/personal.el
+++ b/emacs-prelude/personal/personal.el
@@ -15,9 +15,6 @@
 (require 'init-mac)
 (require 'init-misc)
 
-(setenv "AM_PROFILE" "staging")
-;(setenv "JAVA_HOME" "/usr/local/opt/openjdk@8/")
-
 (global-unset-key (kbd "<left>"))
 (global-unset-key (kbd "<right>"))
 (global-unset-key (kbd "<up>"))
.go?h=v0.4.7&id=c896e6b85ff32c3c0c45336de8b75752a31574ca'>c896e6b ^
5310d08 ^
06cffd8 ^

f2d85b6 ^
1f8b2ce ^
f2d85b6 ^




bd23ef0 ^

f2d85b6 ^
67864b2 ^
cf6c849 ^





f2d85b6 ^


06cffd8 ^
cf6c849 ^




















06cffd8 ^
1f8b2ce ^
06cffd8 ^
c5cf0e1 ^
06cffd8 ^
c5cf0e1 ^
c5cf0e1 ^




06cffd8 ^

cd635e6 ^






c5cf0e1 ^





cd635e6 ^
c5cf0e1 ^
cd635e6 ^

c5cf0e1 ^
cd635e6 ^

c5cf0e1 ^
cd635e6 ^

bded77f ^

cd635e6 ^
bded77f ^
c5cf0e1 ^
cd635e6 ^

c5cf0e1 ^
cd635e6 ^

c5cf0e1 ^
cd635e6 ^


c5cf0e1 ^
cd635e6 ^




c5cf0e1 ^
cd635e6 ^

06cffd8 ^



cd635e6 ^
bd23ef0 ^
cd635e6 ^
313ab71 ^


a0be15e ^
cd635e6 ^
a0be15e ^
1f8b2ce ^
a0be15e ^
a0be15e ^
1f8b2ce ^
313ab71 ^



bd23ef0 ^
d083ce6 ^
1f8b2ce ^
bd23ef0 ^
1f8b2ce ^



313ab71 ^
1f8b2ce ^

1f8b2ce ^
711012e ^
cd635e6 ^
06cffd8 ^



cd635e6 ^

d083ce6 ^
1f8b2ce ^
cd635e6 ^
1f8b2ce ^
cd635e6 ^
c5cf0e1 ^
cd635e6 ^




c5cf0e1 ^
cd635e6 ^




c5cf0e1 ^
cd635e6 ^
a0be15e ^
06cffd8 ^
a0be15e ^
1f8b2ce ^
920306c ^



b29e1c1 ^
bd23ef0 ^
cd635e6 ^


bd23ef0 ^




c896e6b ^

b29e1c1 ^
bd23ef0 ^

5310d08 ^







5310d08 ^
c896e6b ^
cd635e6 ^
c896e6b ^
cd635e6 ^
b29e1c1 ^
c896e6b ^



cd635e6 ^
d083ce6 ^
5310d08 ^

cd635e6 ^
b29e1c1 ^
d083ce6 ^
efa99ed ^

c896e6b ^
5310d08 ^




1f8b2ce ^

cf6c849 ^
1f8b2ce ^






bd23ef0 ^
cf6c849 ^
bd23ef0 ^




c5cf0e1 ^

cf6c849 ^
c5cf0e1 ^
21939ad ^
c5cf0e1 ^
cf6c849 ^

21939ad ^
cf6c849 ^































































































1f8b2ce ^

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406