aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp/hide-mode-line.el
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-31 16:02:21 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-31 16:02:21 +0100
commit17348abe78e05702acaff25d6abefa96ff87b43d (patch)
tree041a980f534cbe7a10e352612f3e540417cc4280 /Emacs/.config/emacs/elisp/hide-mode-line.el
parent046e0b9f0123a3c4bd8aa32431b72de486c60671 (diff)
parentfdef946d6555b01b33fe496cdcd6fb293ae11eab (diff)
downloaddotfiles-17348abe78e05702acaff25d6abefa96ff87b43d.tar.gz
dotfiles-17348abe78e05702acaff25d6abefa96ff87b43d.tar.bz2
dotfiles-17348abe78e05702acaff25d6abefa96ff87b43d.zip
Merge remote-tracking branch 'origin/master'
For desktop
Diffstat (limited to 'Emacs/.config/emacs/elisp/hide-mode-line.el')
-rw-r--r--Emacs/.config/emacs/elisp/hide-mode-line.el15
1 files changed, 6 insertions, 9 deletions
diff --git a/Emacs/.config/emacs/elisp/hide-mode-line.el b/Emacs/.config/emacs/elisp/hide-mode-line.el
index a16667d..488bf3f 100644
--- a/Emacs/.config/emacs/elisp/hide-mode-line.el
+++ b/Emacs/.config/emacs/elisp/hide-mode-line.el
@@ -5,10 +5,9 @@
;; Author: Aryadev Chavali <aryadev@aryadevchavali.com>
;; Keywords:
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License version
+;; 2 as published by the Free Software Foundation.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -31,11 +30,9 @@
"Hides the mode line."
:lighter nil
(if mode-line-format
- (progn
- (setq-local hide-mode-line--prev-mode-line mode-line-format)
- (setq-local mode-line-format nil))
- (setq-local mode-line-format hide-mode-line--prev-mode-line)))
-
+ (setq-local hide-mode-line--prev-mode-line mode-line-format
+ mode-line-format nil)
+ (setq-local mode-line-format hide-mode-line--prev-mode-line)))
(provide 'hide-mode-line)
;;; hide-mode-line.el ends here