projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a33cdfd
)
emacs - add ag
author
Peng Li
<seudut@gmail.com>
Thu, 18 Aug 2016 13:21:20 +0000
(21:21 +0800)
committer
Peng Li
<seudut@gmail.com>
Thu, 18 Aug 2016 13:21:20 +0000
(21:21 +0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
70d381a
..
1e38901
100644
(file)
--- a/
emacs.d/config.org
+++ b/
emacs.d/config.org
@@
-1436,6
+1436,17
@@
When see function by =C-h f=, and visit the source code, I would like the buffer
:ensure t)
#+END_SRC
:ensure t)
#+END_SRC
+** Ag
+install =ag=, =the-silver-searcher= by homebrew on mac
+#+BEGIN_SRC sh
+brew install the-silver-searcher
+#+END_SRC
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+ (use-package ag
+ :ensure t)
+#+END_SRC
+
* Dired
** Dired bindings
=C-o= is defined as a global key for window operation, here unset it in dired mode
* Dired
** Dired bindings
=C-o= is defined as a global key for window operation, here unset it in dired mode
@@
-2446,7
+2457,7
@@
Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del
;; buffer / windows switch
("o" sd/toggle-max-windows "one" :exit t)
("C-k" sd/delete-current-window "del" :exit t)
;; buffer / windows switch
("o" sd/toggle-max-windows "one" :exit t)
("C-k" sd/delete-current-window "del" :exit t)
- ("
D
" (lambda ()
+ ("
C-d
" (lambda ()
(interactive)
(kill-buffer)
(sd/delete-current-window))
(interactive)
(kill-buffer)
(sd/delete-current-window))