projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
27a4007
)
Emacs - eshell mapping in evil mode
author
Peng Li
<seudut@gmail.com>
Sun, 24 Sep 2017 06:59:35 +0000
(14:59 +0800)
committer
Peng Li
<seudut@gmail.com>
Tue, 26 Sep 2017 18:30:49 +0000
(
02:30
+0800)
emacs.d/emacs-evil.org
patch
|
blob
|
history
diff --git
a/emacs.d/emacs-evil.org
b/emacs.d/emacs-evil.org
index
294ce4d
..
2923d5e
100644
(file)
--- a/
emacs.d/emacs-evil.org
+++ b/
emacs.d/emacs-evil.org
@@
-196,12
+196,17
@@
Let the search highlight persistent, https://stackoverflow.com/questions/2576803
** Eshell
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(add-hook 'eshell-mode-hook (lambda ()
** Eshell
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(add-hook 'eshell-mode-hook (lambda ()
- (dolist (key-fun '(("e" . sd/toggle-project-eshell)
- ("d" . dired)
- ("f" . ido-switch-buffer)
- ("q" . evil-quit)))
- (evil-define-key 'emacs eshell-mode-map (kbd (concat evil-leader/leader (car key-fun))) (cdr key-fun)))))
+ (when (and (boundp 'evil-mode) evil-mode)
+ (dolist (key-fun '(("e" . sd/toggle-project-eshell)
+ ("d" . dired)
+ ("f" . ido-switch-buffer)
+ ("'" . other-window)
+ ("q" . evil-quit)))
+ (evil-define-key 'emacs eshell-mode-map (kbd (concat evil-leader/leader (car key-fun))) (cdr key-fun))))
+ ;; (define-key eshell-mode-map (kbd "C-j") nil)
+ ))
+ ;;
;; (add-hook 'eshell-mode-map
;; (lambda ()
;; (mapc (lambda (key-fun)
;; (add-hook 'eshell-mode-map
;; (lambda ()
;; (mapc (lambda (key-fun)