summaryrefslogtreecommitdiffstats
path: root/emacs/site-lisp/oni.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-02 21:26:36 +0200
committerGravatar Tom Willemse2013-05-02 21:26:36 +0200
commitca90f4623b44157ffa08555b4ac448d1b440ac5f (patch)
tree72a654db656e0a8ea363bd9bebef6b9133e634c1 /emacs/site-lisp/oni.el
parenta5cea3ece7c46fdb0eb88cb1eb6013658fc9ff3d (diff)
downloaddotfiles-ca90f4623b44157ffa08555b4ac448d1b440ac5f.tar.gz
dotfiles-ca90f4623b44157ffa08555b4ac448d1b440ac5f.zip
Move as much as possible to custom.el
Diffstat (limited to 'emacs/site-lisp/oni.el')
-rw-r--r--emacs/site-lisp/oni.el7
1 files changed, 7 insertions, 0 deletions
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))