From 07be108b4ea6e89120948ea2cb10841be5616d4c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 19 Nov 2012 23:23:13 +0100 Subject: .emacs.d/site-lisp/oni.el --- .emacs.d/site-lisp/oni.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.emacs.d/site-lisp/oni.el') 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 ")")) -- cgit v1.2.3-54-g00ecf From e2ed387df12186dba6f6e0c60044ae5d4d59aa20 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 20 Nov 2012 18:53:43 +0100 Subject: .emacs.d/site-lisp/oni.el --- .emacs.d/site-lisp/oni.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.emacs.d/site-lisp/oni.el') diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index bfdf369..286f19b 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -402,6 +402,12 @@ When dealing with braces, add another line and indent that too." (rainbow-delimiters-mode) (setq fci-rule-column 80)) +(defun oni:pretty-control-l-function (win) + "Just make a string of either `fci-rule-colum' or `fill-column' +length -1. Use the `-' character. WIN is ignored." + (make-string + (1- (if (boundp 'fci-rule-column) fci-rule-column fill-column)) ?-)) + (defun oni:prog-mode-func () "Function for `prog-mode-hook'." (rainbow-delimiters-mode) -- cgit v1.2.3-54-g00ecf