summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-11-19 23:23:13 +0100
committerGravatar Tom Willemsen2012-11-19 23:23:13 +0100
commit07be108b4ea6e89120948ea2cb10841be5616d4c (patch)
tree399721fd92d28127bb1eba4d3ef2234030c83f8b
parentc99d57dbf3c388661729091087fe2ced638cbc04 (diff)
downloaddotfiles-07be108b4ea6e89120948ea2cb10841be5616d4c.tar.gz
dotfiles-07be108b4ea6e89120948ea2cb10841be5616d4c.zip
.emacs.d/site-lisp/oni.el
-rw-r--r--.emacs.d/site-lisp/oni.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el
index a0aa003..bfdf369 100644
--- a/.emacs.d/site-lisp/oni.el
+++ b/.emacs.d/site-lisp/oni.el
@@ -273,6 +273,13 @@ If COUNT has been specified indent by that much, otherwise look at
(kill-region (region-beginning) (region-end))
(kill-line)))
+(defun oni:load-hippie-exp (other)
+ "Make sure both hippie-expand and yasnippet are loaded in order
+ to add yasnippet's expand function to hippie-expand."
+ (require other)
+ (add-to-list 'hippie-expand-try-functions-list
+ 'yas/hippie-try-expand))
+
(defun oni:lua-mode-func()
"Function for `lua-mode-hook'."
(local-unset-key (kbd ")"))