X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d_2%2Fconfig.org;h=2f055ea6b71f0a0cb6311d415e9ba2a9fb8ae5a6;hb=c9cec9c74ed8fb13e6c44e7572ac5e3429f55a41;hp=8a07bec2de023c8e4b2032c478ccd5925a308559;hpb=64efe2b4c6715ad8c5660df5c1a5baf1c0f9c00c;p=dotfiles.git diff --git a/emacs.d_2/config.org b/emacs.d_2/config.org index 8a07bec..2f055ea 100644 --- a/emacs.d_2/config.org +++ b/emacs.d_2/config.org @@ -433,13 +433,26 @@ Use [[https://github.com/DarwinAwardWinner/ido-ubiquitous][ido-ubiquitous]] for #+END_SRC -* File and Buffer Operation +** Ido-exit-target -Remove prefix =ESC=, refer [[http://emacs.stackexchange.com/questions/14755/how-to-remove-bindings-to-the-esc-prefix-key][here]] +[[https://github.com/waymondo/ido-exit-target][ido-exit-target]] let you open file/buffer on =other-windows= when call =ido-switch-buffer= #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (define-key key-translation-map (kbd "ESC") (kbd "C-g")) + (use-package ido-exit-target + :ensure t + :init + (define-key ido-common-completion-map (kbd "C-j") #'ido-exit-target-other-window)) + +#+END_SRC + +* Key bindings + +** Remove prefix =ESC=, refer [[http://emacs.stackexchange.com/questions/14755/how-to-remove-bindings-to-the-esc-prefix-key][here]] + +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + + ;; (define-key key-translation-map (kbd "ESC") (kbd "C-g")) #+END_SRC @@ -464,6 +477,7 @@ Use =ESC= to exit minibuffer. Also I map =Super-h= the same as =C-g= #+END_SRC + ** =Super= bindings for file, buffer and windows Some global bindings on =Super=, on Mac, it is =Command= @@ -555,12 +569,17 @@ I use the prefix =M-s= for searching in buffers (global-set-key key keymap)) (global-set-key (kbd "M-s M-s") 'isearch-forward-regexp) - (global-set-key (kbd "M-s M-r") 'isearch-forward-regexp) + (global-set-key (kbd "M-s M-r") 'isearch-backward-regexp) - (define-key isearch-mode-map (kbd "M-s") 'isearch-forward-regexp) + (define-key isearch-mode-map "\M-s" 'isearch-repeat-forward) + (define-key isearch-mode-map "\M-r" 'isearch-repeat-backward) + + ;; (global-set-key (kbd "M-s M-r") 'isearch-backward-regexp) #+END_SRC + + * Misc Settings @@ -855,9 +874,7 @@ We can use [[https://www.gnu.org/software/emms/quickstart.html][Emms]] for multi ** GnoGo -Play Go in Emacs - -gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f95b774cb292d1169748bc0a62ba647bbd8c0652/etc/my-inits/my-inits-gnugo.el][to here]] +Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f95b774cb292d1169748bc0a62ba647bbd8c0652/etc/my-inits/my-inits-gnugo.el][to here]]. start at image display mode and grid mode #+BEGIN_SRC emacs-lisp :tangle yes :results silent @@ -874,6 +891,7 @@ gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f95b774cb292d116974 (add-to-list 'gnugo-option-history (format "--boardsize 19 --color black --level 1"))) #+END_SRC + * Programming ** Languages