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
bdeaa675
Commit
bdeaa675
authored
Dec 31, 2005
by
Chong Yidong
Browse files
* cus-theme.el (custom-new-theme-mode-map): New variable.
parent
3a6c62db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/cus-theme.el
lisp/cus-theme.el
+15
-1
No files found.
lisp/ChangeLog
View file @
bdeaa675
2005-12-30 Chong Yidong <cyd@stupidchicken.com>
* cus-theme.el (custom-new-theme-mode): Use cus-edit faces.
(custom-new-theme-mode-map): New variable.
2005-12-30 Richard M. Stallman <rms@gnu.org>
...
...
lisp/cus-theme.el
View file @
bdeaa675
...
...
@@ -31,11 +31,25 @@
(
eval-when-compile
(
require
'wid-edit
))
(
defvar
custom-new-theme-mode-map
;; This keymap should be dense, but a dense keymap would prevent inheriting
;; "\r" bindings from the parent map.
;; Actually, this misfeature of dense keymaps was fixed on 2001-11-26.
(
let
((
map
(
make-keymap
)))
(
set-keymap-parent
map
widget-keymap
)
(
suppress-keymap
map
)
(
define-key
map
"n"
'widget-forward
)
(
define-key
map
"p"
'widget-backward
)
(
define-key
map
[mouse-1]
'widget-move-and-invoke
)
map
)
"Keymap for `custom-new-theme-mode'."
)
(
define-derived-mode
custom-new-theme-mode
nil
"New-Theme"
"Major mode for the buffer created by `customize-create-theme'.
Do not call this mode function yourself. It is only meant for internal
use by `customize-create-theme'."
(
set-keymap-parent
custom-new-theme-mode-map
widget-keymap
)
(
use-local-map
custom-new-theme-mode-map
)
(
define-key
custom-new-theme-mode-map
[mouse-1]
'widget-move-and-invoke
)
(
set
(
make-local-variable
'widget-documentation-face
)
'custom-documentation
)
(
set
(
make-local-variable
'widget-button-face
)
custom-button
)
(
set
(
make-local-variable
'widget-button-pressed-face
)
custom-button-pressed
)
...
...
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