From 3b1cbb1e77020f84f07811dbd30a8afed2076225 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 9 Jul 2016 20:48:32 +0800 Subject: [PATCH] eamcs - change some binding behaviour --- emacs.d/config.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 07627fe..fb0e378 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1336,11 +1336,13 @@ Refer [[https://github.com/abo-abo/hydra/blob/master/hydra-examples.el][hydra-ex (windmove-down)) "horz" :exit t) ("o" delete-other-windows "one" :exit t) + ("C-o" delete-other-windows "one" :exit t) ("a" ace-window "ace") ("s" ace-swap-window "swap") ("d" ace-delete-window "ace-one" :exit t) ("i" ace-maximize-window "ace-one" :exit t) - ("b" ido-switch-buffer "buf") + ("b" ido-switch-buffer "buf" :exit t) + ("C-b" ido-switch-buffer "buf" :exit t) ;; ("m" headlong-bookmark-jump "bmk") ("q" nil "cancel") ("u" (progn (winner-undo) (setq this-command 'winner-undo)) "undo") @@ -1682,16 +1684,15 @@ In Lisp Mode, =M-o= is defined, but I use this for global hydra window. So here bindings in =lispy-mode-map= after loaded. see [[http://stackoverflow.com/questions/298048/how-to-handle-conflicting-keybindings][here]] #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (use-package lispy :ensure t :init (eval-after-load 'lispy - '(progn - (define-key lispy-mode-map (kbd "M-o") nil))) + `(progn + (define-key lispy-mode-map (kbd "M-o") nil) + (define-key lispy-mode-map (kbd "C-d") nil))) :config (add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1)))) - #+END_SRC *** Perl -- 2.11.0