Commit b2164af4 authored by Rüdiger Sonderfeld's avatar Rüdiger Sonderfeld

ibuffer.el (ibuffer-mode-map): Use toggle button for

`ibuffer-auto-mode' menu entry.
(ibuffer-mode-hook): Add `ibuffer-auto-mode' customization option.
parent 074a1638
2014-08-08 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
* ibuffer.el (ibuffer-mode-map): Use toggle button for
`ibuffer-auto-mode' menu entry.
(ibuffer-mode-hook): Add `ibuffer-auto-mode' customization option.
2014-08-08 Matthias Meulien <orontee@gmail.com>
* progmodes/prog-mode.el (prog-mode-hook): Make customizable.
......
......@@ -350,6 +350,7 @@ directory, like `default-directory'."
(defcustom ibuffer-mode-hook nil
"Hook run upon entry into `ibuffer-mode'."
:type 'hook
:options '(ibuffer-auto-mode)
:group 'ibuffer)
(defcustom ibuffer-load-hook nil
......@@ -706,7 +707,8 @@ directory, like `default-directory'."
'(menu-item "Diff with file" ibuffer-diff-with-file
:help "View the differences between this buffer and its file"))
(define-key-after map [menu-bar view auto-mode]
'(menu-item "Toggle Auto Mode" ibuffer-auto-mode
'(menu-item "Auto Mode" ibuffer-auto-mode
:button (:toggle . ibuffer-auto-mode)
:help "Attempt to automatically update the Ibuffer buffer"))
(define-key-after map [menu-bar view customize]
'(menu-item "Customize Ibuffer" ibuffer-customize
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment