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
77af54d7
Commit
77af54d7
authored
Nov 21, 2010
by
Jan Djärv
Browse files
* tool-bar.el (tool-bar-setup): Remove save as, print and customize.
parent
4e2f7d2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/tool-bar.el
lisp/tool-bar.el
+0
-9
No files found.
lisp/ChangeLog
View file @
77af54d7
2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
* tool-bar.el (tool-bar-setup): Remove save as, print and customize.
2010-11-21 Deniz Dogan <deniz.a.m.dogan@gmail.com>
* progmodes/python.el (python-font-lock-keywords): Highlight
...
...
lisp/tool-bar.el
View file @
77af54d7
...
...
@@ -271,11 +271,6 @@ holds a keymap."
(
not
(
eq
'special
(
get
major-mode
'mode-class
)))))
(
tool-bar-add-item-from-menu
'write-file
"saveas"
nil
:vert-only
t
:visible
'
(
or
buffer-file-name
(
not
(
eq
'special
(
get
major-mode
'mode-class
)))))
(
tool-bar-add-item-from-menu
'undo
"undo"
nil
:vert-only
t
:visible
'
(
not
(
eq
'special
(
get
major-mode
'mode-class
))))
...
...
@@ -297,16 +292,12 @@ holds a keymap."
;; than a lambda for Read Mail.
;;(tool-bar-add-item-from-menu 'compose-mail "mail/compose")
(
tool-bar-add-item-from-menu
'print-buffer
"print"
nil
:label
"Print"
)
;; tool-bar-add-item-from-menu itself operates on
;; (default-value 'tool-bar-map), but when we don't use that function,
;; we must explicitly operate on the default value.
(
let
((
tool-bar-map
(
default-value
'tool-bar-map
)))
(
tool-bar-add-item
"preferences"
'customize
'customize
:help
"Edit preferences (customize)"
)
(
tool-bar-add-item
"help"
(
lambda
()
(
interactive
)
(
popup-menu
menu-bar-help-menu
))
...
...
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