aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab1997-12-10 11:24:33 +0000
committerAndreas Schwab1997-12-10 11:24:33 +0000
commitfa4a3d4930cfa5000a2a93ee2319ae260e2795ae (patch)
treef89db5e3941056f53ea89d27c44f71f06a45174a
parent6453db457203825426b95fb46339b863c5358853 (diff)
downloademacs-fa4a3d4930cfa5000a2a93ee2319ae260e2795ae.tar.gz
emacs-fa4a3d4930cfa5000a2a93ee2319ae260e2795ae.zip
Customized.
-rw-r--r--lisp/auto-show.el22
1 files changed, 16 insertions, 6 deletions
diff --git a/lisp/auto-show.el b/lisp/auto-show.el
index 65e2962aa7a..34b8ae75ad7 100644
--- a/lisp/auto-show.el
+++ b/lisp/auto-show.el
@@ -37,23 +37,33 @@
37 37
38;;; Code: 38;;; Code:
39 39
40(defvar auto-show-mode t 40(defgroup auto-show nil
41 "Perform automatic horizontal scrolling as point moves."
42 :group 'editing)
43
44(defcustom auto-show-mode t
41 "*Non-nil enables automatic horizontal scrolling, when lines are truncated. 45 "*Non-nil enables automatic horizontal scrolling, when lines are truncated.
42The default value is t. To change the default, do this: 46The default value is t. To change the default, do this:
43 (set-default 'auto-show-mode nil) 47 (set-default 'auto-show-mode nil)
44See also command `auto-show-mode'. 48See also command `auto-show-mode'.
45This variable has no effect when lines are not being truncated. 49This variable has no effect when lines are not being truncated.
46This variable is automatically local in each buffer where it is set.") 50This variable is automatically local in each buffer where it is set."
51 :type 'boolean
52 :group 'auto-show)
47 53
48(make-variable-buffer-local 'auto-show-mode) 54(make-variable-buffer-local 'auto-show-mode)
49 55
50(defvar auto-show-shift-amount 8 56(defcustom auto-show-shift-amount 8
51 "*Extra columns to scroll. for automatic horizontal scrolling.") 57 "*Extra columns to scroll. for automatic horizontal scrolling."
58 :type 'integer
59 :group 'auto-show)
52 60
53(defvar auto-show-show-left-margin-threshold 50 61(defcustom auto-show-show-left-margin-threshold 50
54 "*Threshold column for automatic horizontal scrolling to the right. 62 "*Threshold column for automatic horizontal scrolling to the right.
55If point is before this column, we try to scroll to make the left margin 63If point is before this column, we try to scroll to make the left margin
56visible. Setting this to 0 disables this feature.") 64visible. Setting this to 0 disables this feature."
65 :type 'integer
66 :group 'auto-show)
57 67
58(defun auto-show-truncationp () 68(defun auto-show-truncationp ()
59 "True if line truncation is enabled for the selected window." 69 "True if line truncation is enabled for the selected window."