4 ;; 1. exec external progeam
5 ;; prefix + s : eshell / term
6 ;; prefix + p : package install
10 ;; 3. prefix for avy motion
11 ;; 4. window / buffer switch
12 ;; 5. file project switch
16 (hydra-add-font-lock))
19 (defhydra hydra-external (global-map "<f2>")
21 ("g" text-scale-increase "in")
22 ("l" text-scale-decrease "out")
26 ;; hydra for Misc commands
27 (defhydra hydra-misc (:exit t)
29 ("e" eshell "eshell" :color red)
32 (if (pl/buffer-exist "*Packages*")
33 (switch-to-buffer "*Packages*")
34 (package-list-packages)))
35 "List-package" :color red)
37 (defun pl/buffer-exist (bufname) (not (eq nil (get-buffer bufname))))
38 (global-set-key (kbd "<f3>") 'hydra-misc/body)