Emacs - modify the default face of search highlight
[dotfiles.git] / emacs.d / config.org
index 85e5b33..e25b01e 100644 (file)
@@ -54,6 +54,9 @@ Set system PATH and emacs exec path
 
   ;;supress the redefined warning at startup
   (setq ad-redefinition-action 'accept)
+
+  (setq scroll-step 1)
+  (setq scroll-margin 5)
 #+END_SRC
 
 *** Custom file 
@@ -355,6 +358,11 @@ improve color for org-mode
 
 #+END_SRC
 
+search text theme
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  (set-face-attribute 'lazy-highlight nil :background "yellow" :foreground "black" :weight 'bold)
+#+END_SRC
+
 ** Rainbow-delimiter
 
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
@@ -1260,6 +1268,8 @@ set default eshell history folder
   ;; (add-hook 'eshell-mode-hook (lambda ()
   ;;                               (local-set-key (kbd "C-l") 'sd/eshell-clear-buffer)))
   (add-hook 'eshell-mode-hook (apply-partially #'local-set-key (kbd "C-l") 'sd/eshell-clear-buffer))
+  ;; (add-hook 'eshell-mode-map (lambda () (interactive)
+  ;;                              (define-key eshell-mode-map (kbd "<tab>") 'completion-at-point)))
 #+END_SRC
 
 ** Toggle Eshell
@@ -2110,6 +2120,7 @@ bindings in =lispy-mode-map= after loaded. see [[http://stackoverflow.com/questi
   (use-package lispy
     :ensure t
     :init
+    (setq lispy-delete-backward-recenter 0)
     (with-eval-after-load "lispy"
       (define-key lispy-mode-map (kbd "M-o") nil)
       (define-key lispy-mode-map (kbd "g") 'special-lispy-goto-local)