diff options
| author | Jan Djärv | 2010-09-21 09:01:22 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-09-21 09:01:22 +0200 |
| commit | 8cf1771a55661ee7957d460395df5fe6ffcc8d6b (patch) | |
| tree | 524cbe739e487a8e81ff773cfc1e6ca90f346276 | |
| parent | 48e24408d0048906c409aa8ce97eecdd0c48a790 (diff) | |
| download | emacs-8cf1771a55661ee7957d460395df5fe6ffcc8d6b.tar.gz emacs-8cf1771a55661ee7957d460395df5fe6ffcc8d6b.zip | |
* tool-bar.el (tool-bar-position): New defcustom (Bug#7049).
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/tool-bar.el | 17 |
2 files changed, 21 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2f94752943b..5e7ae954b8a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-09-21 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * tool-bar.el (tool-bar-position): New defcustom (Bug#7049). | ||
| 4 | |||
| 1 | 2010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * textmodes/reftex-parse.el (reftex-what-macro) | 7 | * textmodes/reftex-parse.el (reftex-what-macro) |
diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el index 98aaa8fe50a..4dedf3dfca5 100644 --- a/lisp/tool-bar.el +++ b/lisp/tool-bar.el | |||
| @@ -311,6 +311,23 @@ holds a keymap." | |||
| 311 | 'help | 311 | 'help |
| 312 | :help "Pop up the Help menu"))) | 312 | :help "Pop up the Help menu"))) |
| 313 | 313 | ||
| 314 | (if (featurep 'move-toolbar) | ||
| 315 | (defcustom tool-bar-position 'top | ||
| 316 | "Specify on which side the tool bar shall be. | ||
| 317 | Possible values are `top' (tool bar on top), `bottom' (tool bar at bottom), | ||
| 318 | `left' (tool bar on left) and `right' (tool bar on right). | ||
| 319 | Customize `tool-bar-mode' if you want to show or hide the tool bar." | ||
| 320 | :type '(choice (const top) | ||
| 321 | (const bottom) | ||
| 322 | (const left) | ||
| 323 | (const right)) | ||
| 324 | :group 'frames | ||
| 325 | :initialize 'custom-initialize-default | ||
| 326 | :set (lambda (sym val) | ||
| 327 | (set-default sym val) | ||
| 328 | (modify-all-frames-parameters | ||
| 329 | (list (cons 'tool-bar-position val)))))) | ||
| 330 | |||
| 314 | 331 | ||
| 315 | (provide 'tool-bar) | 332 | (provide 'tool-bar) |
| 316 | ;; arch-tag: 15f30f0a-d0d7-4d50-bbb7-f48fd0c8582f | 333 | ;; arch-tag: 15f30f0a-d0d7-4d50-bbb7-f48fd0c8582f |