Josh Bicking %!s(int64=8) %!d(string=hai) anos
pai
achega
391fdfe55a
Modificáronse 1 ficheiros con 13 adicións e 3 borrados
  1. 13 3
      emacs

+ 13 - 3
emacs

@@ -27,16 +27,27 @@ Return a list of installed packages or nil for every skipped package."
 ;; Activate installed packages
 ;; Activate installed packages
 (package-initialize)
 (package-initialize)
 
 
-;; Assuming you wish to install "iedit" and "magit"
+;; Check that all packages are installed
 (ensure-package-installed 'iedit
 (ensure-package-installed 'iedit
 			  'magit
 			  'magit
 			  'undo-tree
 			  'undo-tree
-			  'evil)
+			  'evil
+			  'evil-leader)
+
+;; Evil leader is Space
+(global-evil-leader-mode)
+(evil-leader/set-leader "<SPC>")
+
+;; Leader keybinds
+(evil-leader/set-key
+  "u" 'undo-tree-visualize)
+;; 'evil-window-move-far-left
 
 
 ;; Default to evil mode
 ;; Default to evil mode
 (require 'evil)
 (require 'evil)
 (evil-mode t)
 (evil-mode t)
 
 
+
 ;; All yes or no prompts are y or n
 ;; All yes or no prompts are y or n
 (defalias 'yes-or-no-p 'y-or-n-p)
 (defalias 'yes-or-no-p 'y-or-n-p)
 
 
@@ -50,7 +61,6 @@ Return a list of installed packages or nil for every skipped package."
    (unless (file-exists-p (concat user-emacs-directory "undo"))
    (unless (file-exists-p (concat user-emacs-directory "undo"))
 (make-directory (concat user-emacs-directory "undo")))
 (make-directory (concat user-emacs-directory "undo")))
 
 
-
 ;; TODO:
 ;; TODO:
 ;; Go through the tutorials, skim the manuals
 ;; Go through the tutorials, skim the manuals
 ;; learning elisp
 ;; learning elisp