#+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"
(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 ()
(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]]
(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)
(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