Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
217425d0
Commit
217425d0
authored
Sep 15, 1999
by
Richard M. Stallman
Browse files
(whitespace-mode, whitespace-mode-line): Add defvars.
parent
f0628026
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/whitespace.el
lisp/whitespace.el
+4
-2
No files found.
lisp/whitespace.el
View file @
217425d0
...
...
@@ -175,13 +175,15 @@ To disable timer scans, set this to zero."
:group
'whitespace
)
;; Tell Emacs about this new kind of minor mode
(
defvar
whitespace-mode
nil
"Non-nil when Whitespace mode (a minor mode) is enabled."
)
(
make-variable-buffer-local
'whitespace-mode
)
(
put
'whitespace-mode
'permanent-local
nil
)
(
set-default
'whitespace-mode
nil
)
(
defvar
whitespace-mode-line
nil
"String to display in the mode line for Whitespace mode."
)
(
make-variable-buffer-local
'whitespace-mode-line
)
(
put
'whitespace-mode-line
'permanent-local
nil
)
(
set-default
'whitespace-mode-line
nil
)
(
if
(
not
(
assoc
'whitespace-mode
minor-mode-alist
))
(
setq
minor-mode-alist
(
cons
'
(
whitespace-mode
whitespace-mode-line
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment