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
df380962
Commit
df380962
authored
Mar 13, 2003
by
Stefan Monnier
Browse files
(custom-set-minor-mode): New fun.
parent
20b853f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lisp/custom.el
lisp/custom.el
+11
-0
No files found.
lisp/custom.el
View file @
df380962
...
...
@@ -797,6 +797,17 @@ this sets the local binding in that buffer instead."
(
set
variable
value
))
(
set-default
variable
value
)))
(
defun
custom-set-minor-mode
(
variable
value
)
":set function for minor mode variables.
Normally, this sets the default value of VARIABLE to nil if VALUE
is nil and to t otherwise,
but if `custom-local-buffer' is non-nil,
this sets the local binding in that buffer instead."
(
if
custom-local-buffer
(
with-current-buffer
custom-local-buffer
(
funcall
variable
(
or
value
0
)))
(
funcall
variable
(
or
value
0
))))
(
defun
custom-quote
(
sexp
)
"Quote SEXP iff it is not self quoting."
(
if
(
or
(
memq
sexp
'
(
t
nil
))
...
...
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