X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=bebd43e63cb32702719e2378ae251202816f7b53;hb=bb3cd2acea5053490ab28b57c14efc69f7e67b67;hp=70d381ad1c0ed87e57b52828227b660dde64bbf5;hpb=a33cdfd7f16fcd5d81ab7382d60e8f50ba3fe548;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 70d381a..bebd43e 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -985,14 +985,16 @@ Install MacTex-basic [[http://www.tug.org/mactex/morepackages.html][MacTex-basic ** Org structure template extend org-mode's easy templates, refer to [[http://coldnew.github.io/coldnew-emacs/#orgheadline94][Extend org-modes' esay templates]] #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (add-to-list 'org-structure-template-alist - '("E" "#+BEGIN_SRC emacs-lisp :tangle yes :results silent\n?\n#+END_SRC")) - (add-to-list 'org-structure-template-alist - '("S" "#+BEGIN_SRC sh\n?\n#+END_SRC")) - (add-to-list 'org-structure-template-alist - '("p" "#+BEGIN_SRC plantuml :file uml.png \n?\n#+END_SRC")) - (add-to-list 'org-structure-template-alist - '("P" "#+BEGIN_SRC perl \n?\n#+END_SRC")) + (add-to-list 'org-structure-template-alist + '("E" "#+BEGIN_SRC emacs-lisp :tangle yes :results silent\n?\n#+END_SRC")) + (add-to-list 'org-structure-template-alist + '("S" "#+BEGIN_SRC sh :results output replace\n?\n#+END_SRC")) + (add-to-list 'org-structure-template-alist + '("p" "#+BEGIN_SRC plantuml :file uml.png \n?\n#+END_SRC")) + (add-to-list 'org-structure-template-alist + '("P" "#+BEGIN_SRC perl \n?\n#+END_SRC")) + (add-to-list 'org-structure-template-alist + '("f" "#+BEGIN_SRC fundamental :tangle ?\n\n#+END_SRC")) #+END_SRC * Magit @@ -1436,6 +1438,17 @@ When see function by =C-h f=, and visit the source code, I would like the buffer :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 @@ -2446,7 +2459,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) - ("D" (lambda () + ("C-d" (lambda () (interactive) (kill-buffer) (sd/delete-current-window)) @@ -2468,7 +2481,8 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ("m" bookmark-jump-other-window nil :exit t) ("M" bookmark-set nil :exit t) ("g" magit-status nil :exit t) - ("p" paradox-list-packages nil :exit t) + ("p" persp-switch :exit t) + ;; ("p" paradox-list-packages nil :exit t) ;; quit ("q" nil "cancel")