From: Peng Li Date: Tue, 7 Jun 2016 16:43:08 +0000 (+0800) Subject: emacs - add lispy mode X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=05a9ab437c0346197e180c2a4e7312f9ac528053;p=dotfiles.git emacs - add lispy mode --- diff --git a/emacs.d_2/config.org b/emacs.d_2/config.org index ea05da6..5255e6f 100644 --- a/emacs.d_2/config.org +++ b/emacs.d_2/config.org @@ -395,6 +395,7 @@ cause we cannot input =[= and =]=, so here I unset this mappings. And redifined * Misc Settings + ** [[https://github.com/abo-abo/hydra][Hydra]] #+BEGIN_SRC emacs-lisp :tangle yes :results silent @@ -490,8 +491,10 @@ Refer [[https://github.com/abo-abo/hydra/blob/master/hydra-examples.el][hydra-ex ("m" headlong-bookmark-jump "bmk") ("q" nil "cancel") ("u" (progn (winner-undo) (setq this-command 'winner-undo)) "undo") + ("r" (progn (winner-redo) (setq this-command 'winner-redo)) "redo") ("f" nil)) + (global-unset-key (kbd "M-o")) (global-set-key (kbd "M-o") 'sd/hydra-window/body) #+END_SRC @@ -627,6 +630,17 @@ Type =o= to go to the link #+END_SRC +**** Lispy Mode + +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + + (use-package lispy + :ensure t) + + ;(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1))) + +#+END_SRC + *** Perl [[https://www.emacswiki.org/emacs/CPerlMode][CPerl mode]] has more features than =PerlMode= for perl programming. Alias this to =CPerlMode=