|
2 | 2 | ;; using, or things I do not use anymore but I do not discard using again, since |
3 | 3 | ;; future is opaque. |
4 | 4 |
|
5 | | - |
| 5 | +;; Rarely used; not worth the key binding |
6 | 6 | (use-package locate |
7 | 7 | :defer t |
8 | 8 | :bind (([(super l)] . locate) |
9 | 9 | ([(super L)] . locate-with-filter))) |
10 | 10 |
|
11 | 11 |
|
| 12 | +;; rg is enough (projectile-ripgrep and deadgrep cover all my needs) |
12 | 13 | (use-package ag |
13 | 14 | :ensure t |
14 | 15 | :commands ag ag-regexp) |
15 | 16 |
|
| 17 | + |
| 18 | +;; Going the lsp way for python too |
16 | 19 | (use-package jedi |
17 | 20 | :disabled |
18 | 21 | :ensure t |
|
23 | 26 | '("virtualenv" "-p" "python3.7" "--system-site-packages" "--quiet"))) |
24 | 27 |
|
25 | 28 |
|
26 | | - |
27 | | -; Part of projectile now |
28 | | -(use-package projectile-ripgrep |
29 | | - :ensure t |
30 | | - :after projectile) |
31 | | - |
32 | | - |
33 | 29 | ;; load-theme-buffer-local is not polished enough to be worth using it |
34 | | - |
35 | 30 | (add-hook 'inferior-python-mode-hook |
36 | 31 | (lambda nil |
37 | 32 | (load-theme-buffer-local 'tango-dark (current-buffer)))) |
|
43 | 38 | (load-theme-buffer-local 'tango-dark (current-buffer)))) |
44 | 39 |
|
45 | 40 |
|
46 | | - |
47 | 41 | ;; This is nice, and I leave here as example, but always end using |
48 | 42 | ;; 'dired-at-other-repo |
49 | 43 |
|
|
53 | 47 | (require 'popwin) |
54 | 48 | (require 'button) |
55 | 49 | (popwin-mode 1) |
56 | | -(setq git-repositories |
57 | | - (list |
58 | | - "~/www/debhelpers" |
59 | | - "~/www/githooktools" |
60 | | - "~/www/iats/code" |
61 | | - "~/www/iatsadmin" |
62 | | - "~/www/iatsgithooks" |
63 | | - "~/www/iatsreqs" |
64 | | - "~/www/iatstesttools" |
65 | | - "~/www/iatstools" |
66 | | - "~/www/mergequeue" |
67 | | - "~/www/sibyl" |
68 | | - "~/www/squealer" |
69 | | - "~/www/vagrant" |
70 | | - "~/repos/git" |
71 | | - ) |
72 | | - ) |
73 | | - |
74 | | -(defun select-git-repository-from-list() |
75 | | - (interactive) |
76 | | - (with-output-to-temp-buffer "*git-repositories*" |
77 | | - (with-current-buffer "*git-repositories*" |
78 | | - (dolist (repo git-repositories) |
79 | | - (insert-text-button repo 'action `(lambda (x) (delete-window) (magit-status ,repo))) |
80 | | - (newline))))) |
81 | | -(global-set-key (kbd "C-c \\") 'select-git-repository-from-list) |
82 | 50 |
|
83 | 51 |
|
84 | 52 | ;; Useful, but I am using projectile for most of the stuff I need tags for. |
85 | | - |
86 | 53 | (defun recreate-tags() |
87 | 54 | (interactive) |
88 | 55 | (projectile-with-default-dir (projectile-project-root) |
|
92 | 59 |
|
93 | 60 |
|
94 | 61 | ;; I am not using gdb nowadays |
95 | | - |
96 | 62 | (global-set-key [(f12)] 'gdb) |
97 | 63 | (eval-after-load "gdb-mi" |
98 | 64 | '(progn |
|
127 | 93 |
|
128 | 94 |
|
129 | 95 | ;; I am not using java/maven nowadays |
130 | | - |
131 | | - |
132 | | - |
133 | 96 | (global-set-key [(meta f5)] |
134 | 97 | (command (java-compile "pom.xml" "mvn clean install"))) |
135 | 98 | (global-set-key [(meta f6)] |
|
139 | 102 | (global-set-key [(meta f8)] |
140 | 103 | (command (java-compile "build.xml" "ant undeploy ; mvn install && ant deploy"))) |
141 | 104 |
|
| 105 | + |
142 | 106 | ;; Remove maven false positives |
143 | 107 | (add-hook 'compilation-mode-hook |
144 | 108 | (lambda () |
|
151 | 115 | compilation-message nil help-echo nil mouse-face nil) t))) |
152 | 116 | 'append))) |
153 | 117 |
|
154 | | - |
| 118 | +;; ??? This looks for inserting vars into golang based binaries at compile time |
155 | 119 | (add-hook 'compilation-mode-hook |
156 | 120 | (lambda () |
157 | 121 | (font-lock-add-keywords nil |
|
161 | 125 | 'append))) |
162 | 126 |
|
163 | 127 |
|
164 | | - |
165 | 128 | ;; This is fixed, but my faith on PHP mode is not great |
166 | 129 | (eval-after-load "php-mode" |
167 | 130 | '(progn |
|
304 | 267 | (start-process "zeal" nil "zeal" "--query" (concat lang ":" symbol))) |
305 | 268 |
|
306 | 269 |
|
307 | | - |
308 | 270 | ;; I rarely used that anymore, replace bindings by move-line |
309 | | - |
310 | 271 | (global-set-key [(super up)] 'prev-function-name-face) |
311 | 272 | (global-set-key [(super down)] 'next-function-name-face) |
312 | 273 |
|
|
353 | 314 |
|
354 | 315 |
|
355 | 316 | ;; packages disabled for a long timer |
356 | | - |
357 | 317 | (use-package ctags |
358 | 318 | :ensure t |
359 | 319 | :disabled |
|
562 | 522 | (autoload 'sdcv-search "sdcv") |
563 | 523 | :bind ([(control c) ?d] . sdcv-search)) |
564 | 524 |
|
565 | | -;; Thunderlink is not working well |
| 525 | + |
| 526 | +;; Thunderlink is not working well :-( |
566 | 527 | (defun juanleon/open-mail-at-point () |
567 | 528 | (interactive) |
568 | 529 | (let ((link (thing-at-point 'line))) |
|
0 commit comments