summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brand <michael.ch.brand@gmail.com>2016-06-25 17:04:43 +0200
committerMichael Brand <michael.ch.brand@gmail.com>2016-06-25 17:04:43 +0200
commite4baab8e1038c6c14bad718452bd638a4c8c9759 (patch)
tree854a6233b4c4e758ab590b7f642e368d3e050966
parentc338f9c630b12900647fe94e9b089232da707d3a (diff)
downloadorg-mode-e4baab8e1038c6c14bad718452bd638a4c8c9759.tar.gz
Extend a docstring
* lisp/org.el (org-startup-truncated): Extend docstring. (org-set-font-lock-defaults): Also the last top level expression on an own line.
-rw-r--r--lisp/org.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 8630d78..89b5243 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -937,7 +937,16 @@ option, set `org-agenda-inhibit-startup' to nil."
(defcustom org-startup-truncated t
"Non-nil means entering Org-mode will set `truncate-lines'.
This is useful since some lines containing links can be very long and
-uninteresting. Also tables look terrible when wrapped."
+uninteresting. Also tables look terrible when wrapped.
+
+The variable `org-startup-truncated' allows to configure
+truncation for Org mode different to the other modes that use the
+variable `truncate-lines' and as a shortcut instead of putting
+the variable `truncate-lines' into the `org-mode-hook'. If one
+wants to configure truncation for Org mode not statically but
+dynamically e. g. in a hook like `ediff-prepare-buffer-hook' then
+the variable `truncate-lines' has to be used because in such a
+case it is too late to set the variable `org-startup-truncated'."
:group 'org-startup
:type 'boolean)
@@ -6458,7 +6467,8 @@ needs to be inserted at a specific position in the font-lock sequence.")
(setq-local org-font-lock-keywords org-font-lock-extra-keywords)
(setq-local font-lock-defaults
'(org-font-lock-keywords t nil nil backward-paragraph))
- (kill-local-variable 'font-lock-keywords) nil))
+ (kill-local-variable 'font-lock-keywords)
+ nil))
(defun org-toggle-pretty-entities ()
"Toggle the composition display of entities as UTF8 characters."