summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-31 09:54:36 -0700
committerDavid Li <li.davidm96@gmail.com>2015-12-31 09:54:36 -0700
commit32d27621fc0430a10c8b06ed0142f8c7605d3b55 (patch)
tree1280306beb3dd247e6e5825d5f6b07c40dcf1050 /init.el
parent2380cf40fd417fbaac12dd44378ce1d68ea34346 (diff)
Add camelCase motion
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el
index f41c06e..e87d748 100644
--- a/init.el
+++ b/init.el
@@ -9,6 +9,8 @@
package-archives)
(package-initialize)
+(add-to-list 'load-path "~/.emacs.d/lisp")
+
;; GUI settings
(tool-bar-mode -1)
(menu-bar-mode -1)
@@ -59,6 +61,12 @@ This functions should be added to the hooks of major modes for programming."
(require 'evil)
(evil-mode 1)
+(require 'evil-little-word)
+(define-key evil-motion-state-map (kbd "w") 'evil-forward-little-word-begin)
+(define-key evil-motion-state-map (kbd "glw") 'evil-forward-word-begin)
+(define-key evil-motion-state-map (kbd "b") 'evil-backward-little-word-begin)
+(define-key evil-motion-state-map (kbd "glb") 'evil-backward-word-begin)
+
(defun comment-or-uncomment-region-or-line ()
"Comments or uncomments the region or the current line if there's no active region."
(interactive)