emacs - eshell node
[dotfiles.git] / emacs.d / config.org
index 06baf8c..a1e3d09 100644 (file)
@@ -1033,20 +1033,20 @@ and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github
 #+END_SRC
 
 * Eshell
-*** Eshell alias
+** Eshell alias
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
   (defalias 'e 'find-file)
   (defalias 'ff 'find-file)
   (defalias 'ee 'find-files)
 #+END_SRC
 
-*** eshell temp directory
+** eshell temp directory
 set default eshell history folder
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
   (setq eshell-directory-name (concat  sd-temp-directory "eshell"))
 #+END_SRC
 
-*** Eshell erase buffer
+** Eshell erase buffer
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
   (defun sd/eshell-clear-buffer ()
     "Clear eshell buffer"
@@ -1059,7 +1059,7 @@ set default eshell history folder
                                 (local-set-key (kbd "C-l") 'sd/eshell-clear-buffer)))
 #+END_SRC
 
-*** Toggle Eshell
+** Toggle Eshell
 Toggle an eshell in split window below, refer [[http://www.howardism.org/Technical/Emacs/eshell-fun.html][eshell-here]]
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
   (defun sd/window-has-eshell ()
@@ -1100,7 +1100,7 @@ Toggle an eshell in split window below, refer [[http://www.howardism.org/Technic
   (global-set-key (kbd "s-e") 'sd/toggle-eshell-here)
 #+END_SRC
 
-*** TODO smart display
+** TODO smart display
 * Misc Settings
 
 ** [[https://github.com/abo-abo/hydra][Hydra]]
@@ -1441,6 +1441,12 @@ Dired+
     (define-key dired-mode-map (kbd "g") 'dired-goto-file))
 #+END_SRC
 
+dired-hacks
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  (use-package dired-hacks-utils
+    :ensure t)
+#+END_SRC
+
 * ibuffer
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
   (global-set-key (kbd "s-b") 'ibuffer)
@@ -1988,6 +1994,7 @@ Use =ESC= to exit minibuffer. Also I map =Super-h= the same as =C-g=
     (setq projectile-enable-caching t)
     (setq projectile-cache-file (concat sd-temp-directory "projectile.cache"))
     :config
+    (add-to-list 'projectile-globally-ignored-files "GTAGS")
     (projectile-global-mode t))
 
   (use-package persp-projectile
@@ -2566,10 +2573,11 @@ stolen from [[https://github.com/mariolong/emacs.d/blob/f6a061594ef1b5d1f4750e9d
     ("C-SPC" nil "quit" :exit t)
     ("q" nil "quit" :exit t))
 
-  (global-set-key (kbd "M-SPC") (lambda ()
-                                (interactive)
-                                (er/mark-word)
-                                (sd/expand-selected/body)))
+  (global-set-key (kbd "C-SPC") (lambda ()
+                                  (interactive)
+                                  (set-mark-command nil)
+                                  (er/mark-word)
+                                  (sd/expand-selected/body)))
 #+END_SRC
 
 *** TODO make expand-region hydra work with lispy selected