summaryrefslogtreecommitdiffstats
path: root/emacs/site-lisp/oni.el
diff options
context:
space:
mode:
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))