From ca90f4623b44157ffa08555b4ac448d1b440ac5f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 2 May 2013 21:26:36 +0200 Subject: Move as much as possible to custom.el --- emacs/site-lisp/oni.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs/site-lisp/oni.el') diff --git a/emacs/site-lisp/oni.el b/emacs/site-lisp/oni.el index 2436e53..3113dec 100644 --- a/emacs/site-lisp/oni.el +++ b/emacs/site-lisp/oni.el @@ -333,6 +333,13 @@ When dealing with braces, add another line and indent that too." (c-set-offset 'arglist-close '0) (setq-local fci-rule-column 80)) +(defun oni:pretty-control-l-function (win) + "Just make a string of either `fci-rule-column' or + `fill-column' length -1. Use the `-' character. WIN is ignored." + (ignore win) + (make-string + (1- (if (boundp 'fci-rule-column) fci-rule-column fill-column)) ?-)) + (defun oni:prog-mode-func () "Function for `prog-mode-hook'." (setq-local comment-auto-fill-only-comments t)) -- cgit v1.2.3-54-g00ecf