Browse Source

Don't disable menu-bar-mode by default

custom
Bozhidar Batsov 5 years ago
parent
commit
878cffb65a
  1. 2
      CHANGELOG.md
  2. 7
      core/prelude-custom.el
  3. 3
      core/prelude-ui.el

2
CHANGELOG.md

@ -6,6 +6,8 @@
### Changes ### Changes
* [#1278](https://github.com/bbatsov/prelude/issues/1278): Don't disable `menu-bar-mode` unless `prelude-minimalistic-ui` is enabled.
### Bugs fixed ### Bugs fixed
## 1.0.0 (2020-09-15) ## 1.0.0 (2020-09-15)

7
core/prelude-custom.el

@ -36,6 +36,13 @@
:prefix "prelude-" :prefix "prelude-"
:group 'convenience) :group 'convenience)
(defcustom prelude-minimalistic-ui nil
"Controls whether to display the menu-bar and line numbers.
Note that the toolbar is always hidden regardless of this setting."
:type 'boolean
:group 'prelude
:package-version '(prelude . "1.1"))
(defcustom prelude-auto-save t (defcustom prelude-auto-save t
"Non-nil values enable Prelude's auto save." "Non-nil values enable Prelude's auto save."
:type 'boolean :type 'boolean

3
core/prelude-ui.el

@ -37,7 +37,8 @@
(when (fboundp 'tool-bar-mode) (when (fboundp 'tool-bar-mode)
(tool-bar-mode -1)) (tool-bar-mode -1))
(menu-bar-mode -1)
(when prelude-minimalistic-ui
(menu-bar-mode -1))
;; the blinking cursor is nothing, but an annoyance ;; the blinking cursor is nothing, but an annoyance
(blink-cursor-mode -1) (blink-cursor-mode -1)

Loading…
Cancel
Save