#+END_SRC
* Package Management Tools
+** paradox
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+ (use-package paradox
+ :ensure t)
+#+END_SRC
** Use-package
-
Using [[https://github.com/jwiegley/use-package][use-package]] to manage emacs packages
-
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
-
#+END_SRC
** El-get
-
[[https://github.com/dimitri/el-get][El-get]] is package management tool, whicl allows to install external elisp package from any git repository not in mepla.
Check out [[http://tapoueh.org/emacs/el-get.html][el-get]].
-
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(use-package el-get
:ensure t
:init
(add-to-list 'load-path "~/.emacs.d/el-get"))
-
#+END_SRC
* Color and Fonts Settings
#+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]]
#+END_SRC
* dired
+** Dired config
=C-o= is defined as a global key for window operation, here unset it in dired mode
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(use-package dired
(dired-omit-mode))))
#+END_SRC
-Dired+
+** Dired+
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(use-package dired+
:ensure t
(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
;; ibuffer, dired, eshell, bookmarks
;; ("d" ace-delete-window "ace-one" :exit t)
- ("C-o" ido-switch-buffer "buf" :exit t)
- ("d" dired-jump "dired" :exit t)
- ("b" ibuffer "ibuffer" :exit t)
- ("e" eshell "eshell" :exit t)
- ("m" bookmark-jump-other-window "open bmk" :exit t)
- ("M" bookmark-set "set bmk" :exit t)
+ ("C-o" ido-switch-buffer nil :exit t)
+ ("d" dired-jump nil :exit t)
+ ("b" ibuffer nil n:exit t)
+ ("e" eshell nil :exit t)
+ ("m" bookmark-jump-other-window nil :exit t)
+ ("M" bookmark-set nil :exit t)
+ ("g" magit-status nil :exit t)
+ ("p" paradox-list-packages nil :exit t)
;; quit
("q" nil "cancel")
;; ("C-k" nil :exit t)
("C-l" nil nil :exit t)
("C-;" nil nil :exit t)
- ("p" nil nil :exit t)
("n" nil nil :exit t)
("[" nil nil :exit t)
("]" nil nil :exit t)