diff options
| author | Richard M. Stallman | 1997-08-19 00:03:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-19 00:03:01 +0000 |
| commit | ddb3136ef766af1991e170118076cf2400008ca9 (patch) | |
| tree | f43ba4f6dff2026e1a9b1ce73b61dd2d7bc365b5 | |
| parent | b4d413d983883184978703a7ce6407ba7513fac7 (diff) | |
| download | emacs-ddb3136ef766af1991e170118076cf2400008ca9.tar.gz emacs-ddb3136ef766af1991e170118076cf2400008ca9.zip | |
Customized.
| -rw-r--r-- | lisp/hscroll.el | 28 | ||||
| -rw-r--r-- | lisp/indent.el | 20 |
2 files changed, 34 insertions, 14 deletions
diff --git a/lisp/hscroll.el b/lisp/hscroll.el index 7dd3674527d..3940430f93d 100644 --- a/lisp/hscroll.el +++ b/lisp/hscroll.el | |||
| @@ -54,23 +54,35 @@ | |||
| 54 | 54 | ||
| 55 | (defvar hscroll-version "2.2") | 55 | (defvar hscroll-version "2.2") |
| 56 | 56 | ||
| 57 | (defvar hscroll-margin 5 | 57 | (defgroup hscroll nil |
| 58 | "Minor mode to automatically scroll truncated lines horizontally." | ||
| 59 | :group 'editing) | ||
| 60 | |||
| 61 | (defcustom hscroll-margin 5 | ||
| 58 | "*How many columns away from the edge of the window point is allowed to get | 62 | "*How many columns away from the edge of the window point is allowed to get |
| 59 | before HScroll will horizontally scroll the window.") | 63 | before HScroll will horizontally scroll the window." |
| 64 | :group 'hscroll | ||
| 65 | :type 'integer) | ||
| 60 | 66 | ||
| 61 | (defvar hscroll-snap-threshold 30 | 67 | (defcustom hscroll-snap-threshold 30 |
| 62 | "*When point is this many columns (or less) from the left edge of the document, | 68 | "*When point is this many columns (or less) from the left edge of the document, |
| 63 | don't do any horizontal scrolling. In other words, be biased towards the left | 69 | don't do any horizontal scrolling. In other words, be biased towards the left |
| 64 | edge of the document. | 70 | edge of the document. |
| 65 | Set this variable to zero to disable this bias.") | 71 | Set this variable to zero to disable this bias." |
| 72 | :group 'hscroll | ||
| 73 | :type 'integer) | ||
| 66 | 74 | ||
| 67 | (defvar hscroll-step-percent 25 | 75 | (defcustom hscroll-step-percent 25 |
| 68 | "*How far away to place the point from the window's edge when scrolling. | 76 | "*How far away to place the point from the window's edge when scrolling. |
| 69 | Expressed as a percentage of the window's width.") | 77 | Expressed as a percentage of the window's width." |
| 78 | :group 'hscroll | ||
| 79 | :type 'integer) | ||
| 70 | 80 | ||
| 71 | (defvar hscroll-mode-name " Hscr" | 81 | (defcustom hscroll-mode-name " Hscr" |
| 72 | "*Horizontal scrolling mode line indicator. | 82 | "*Horizontal scrolling mode line indicator. |
| 73 | Set this to nil to conserve valuable mode line space.") | 83 | Set this to nil to conserve valuable mode line space." |
| 84 | :group 'hscroll | ||
| 85 | :type 'string) | ||
| 74 | 86 | ||
| 75 | (or (assq 'hscroll-mode minor-mode-alist) | 87 | (or (assq 'hscroll-mode minor-mode-alist) |
| 76 | (setq minor-mode-alist | 88 | (setq minor-mode-alist |
diff --git a/lisp/indent.el b/lisp/indent.el index 5b69fab958a..6639f4b2100 100644 --- a/lisp/indent.el +++ b/lisp/indent.el | |||
| @@ -28,11 +28,17 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (defvar standard-indent 4 "\ | 31 | (defgroup indent nil |
| 32 | Default number of columns for margin-changing functions to indent.") | 32 | "Indentation commands" |
| 33 | :group 'editing) | ||
| 33 | 34 | ||
| 34 | (defvar indent-line-function 'indent-to-left-margin "\ | 35 | (defcustom standard-indent 4 |
| 35 | Function to indent current line.") | 36 | "*Default number of columns for margin-changing functions to indent." |
| 37 | :group 'indent | ||
| 38 | :type 'integer) | ||
| 39 | |||
| 40 | (defvar indent-line-function 'indent-to-left-margin | ||
| 41 | "Function to indent current line.") | ||
| 36 | 42 | ||
| 37 | (defun indent-according-to-mode () | 43 | (defun indent-according-to-mode () |
| 38 | "Indent line in proper way for current major mode." | 44 | "Indent line in proper way for current major mode." |
| @@ -357,10 +363,12 @@ column point starts at, `tab-to-tab-stop' is done instead." | |||
| 357 | (move-marker opoint nil)) | 363 | (move-marker opoint nil)) |
| 358 | (tab-to-tab-stop)))) | 364 | (tab-to-tab-stop)))) |
| 359 | 365 | ||
| 360 | (defvar tab-stop-list | 366 | (defcustom tab-stop-list |
| 361 | '(8 16 24 32 40 48 56 64 72 80 88 96 104 112 120) | 367 | '(8 16 24 32 40 48 56 64 72 80 88 96 104 112 120) |
| 362 | "*List of tab stop positions used by `tab-to-tab-stops'. | 368 | "*List of tab stop positions used by `tab-to-tab-stops'. |
| 363 | This should be a list of integers, ordered from smallest to largest.") | 369 | This should be a list of integers, ordered from smallest to largest." |
| 370 | :group 'indent | ||
| 371 | :type '(repeat integer)) | ||
| 364 | 372 | ||
| 365 | (defvar edit-tab-stops-map nil "Keymap used in `edit-tab-stops'.") | 373 | (defvar edit-tab-stops-map nil "Keymap used in `edit-tab-stops'.") |
| 366 | (if edit-tab-stops-map | 374 | (if edit-tab-stops-map |