Display battery in modeline

This commit is contained in:
Antoine Martin 2020-04-15 09:52:00 +02:00
parent 91274e4bc7
commit eecc114a9b

View file

@ -4,6 +4,7 @@
- [[#font][Font]] - [[#font][Font]]
- [[#theme][Theme]] - [[#theme][Theme]]
- [[#line-numbers][Line numbers]] - [[#line-numbers][Line numbers]]
- [[#battery-indicator][Battery indicator]]
- [[#programming][Programming]] - [[#programming][Programming]]
- [[#lsp][LSP]] - [[#lsp][LSP]]
- [[#rust][Rust]] - [[#rust][Rust]]
@ -64,6 +65,14 @@ Possible values of =display-line-numbers-type= are =nil=, =t=, and ='relative=.
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
#+END_SRC #+END_SRC
** Battery indicator
I'm on a laptop, so let's display my battery in the modeline:
#+BEGIN_SRC emacs-lisp
(display-battery-mode 1)
#+END_SRC
* Programming * Programming
** LSP ** LSP