aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp/hide-mode-line.el
diff options
context:
space:
mode:
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