Skip to content

Commit

Permalink
Merge pull request #61 from DivineDominion/patch-1
Browse files Browse the repository at this point in the history
add instructions to diminish all modes
  • Loading branch information
DamienCassou authored Aug 7, 2020
2 parents f6590a4 + a48d58d commit 9c7a927
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,60 @@ configuration file:
You can also decide to only activate beginend for some of its
supported major modes (e.g., through ~beginend-dired-mode~).

*** init.el example configuration

Vanilla Emacs ~init.el~:

#+BEGIN_SRC emacs-lisp
(require 'beginend)
(beginend-global-mode)
#+END_SRC

Configuration with the popular [[https://github.com/jwiegley/use-package][use-package]] macro:

#+BEGIN_SRC emacs-lisp
(use-package beginend
:ensure t
:demand t
:config
(beginend-global-mode))
#+END_SRC

** Cleaning up the modeline

By default, beginend adds the ~be~ lighter to the modeline.

You can use [[https://github.com/myrjola/diminish.el][diminish.el]] or [[https://savannah.nongnu.org/projects/delight][delight.el]] to turn this off for every minor
mode beginend defines by looping over the ~beginend-modes~ variable.
Note that you will /also/ need to "turn off the lights" for
~beginend-global-mode~, which is not part of this list.

If you usually diminish all minor modes, I recommend using [[https://melpa.org/#/minions][minions.el]].

In the following snippets, you can replace ~delight~ with ~diminish~ for
similar results.

Adapting the vanilla Emacs ~init.el~:

#+BEGIN_SRC emacs-lisp
(require 'beginend)
(dolist (mode (cons 'beginend-global-mode (mapcar #'cdr beginend-modes)))
(diminish mode))
(beginend-global-mode)
#+END_SRC

Adapting the [[https://github.com/jwiegley/use-package][use-package]] macro configuration:

#+BEGIN_SRC emacs-lisp
(use-package beginend
:ensure t
:demand t
:config
(dolist (mode (cons 'beginend-global-mode (mapcar #'cdr beginend-modes)))
(diminish mode))
(beginend-global-mode))
#+END_SRC

** Using

At this point, newly opened supported buffers will get improved
Expand Down

0 comments on commit 9c7a927

Please sign in to comment.