emacs - ido-exit-target to open buffer on other window
[dotfiles.git] / emacs.d_2 / config.org
index 8a07bec..2f055ea 100644 (file)
@@ -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