[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/olivetti fd3d39d 006/134: Removed extraneous vars and f
From: |
Stefan Monnier |
Subject: |
[elpa] externals/olivetti fd3d39d 006/134: Removed extraneous vars and fns |
Date: |
Thu, 25 Apr 2019 09:57:14 -0400 (EDT) |
branch: externals/olivetti
commit fd3d39d729300510bb70779c45f8c7477601d938
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>
Removed extraneous vars and fns
---
olivetti.el | 44 ++------------------------------------------
1 file changed, 2 insertions(+), 42 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index 1f6f306..4479e00 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -58,16 +58,6 @@ This option does not affect file contents."
:type '(choice (integer 66) (float 0.5))
:group 'olivetti)
-(defcustom olivetti-hide-menu-bar nil
- "Turn off `menu-bar-mode'."
- :type 'boolean
- :group 'olivetti)
-
-(defcustom olivetti-hide-tool-bar t
- "Turn off `tool-bar-mode'."
- :type 'boolean
- :group 'olivetti)
-
(defcustom olivetti-hide-mode-line nil
"Hide the mode line.
Default is nil because this can cause display issues in console
@@ -75,11 +65,6 @@ mode."
:type 'boolean
:group 'olivetti)
-(defcustom olivetti-hide-fringes t
- "Hide fringes."
- :type 'boolean
- :group 'olivetti)
-
(defcustom olivetti-delete-selection t
"Turn on `delete-selection-mode'."
:type 'boolean
@@ -112,28 +97,7 @@ mode."
((error "`olivetti-body-width' must be an integer or a
floating point between 0.0 and 1.0"))))
(margin
(round (/ (- (window-total-width) width) 2))))
- (set-window-margins (selected-window) margin margin))
- (when olivetti-hide-fringes
- (set-window-fringes (selected-window) 0 0 t)))
-
-;;; menu ===============================================================
-
-(defvar olivetti-mode-map
- (make-sparse-keymap)
- "Mode map for `olivetti-mode'.")
-
-(easy-menu-define olivetti-mode-menu olivetti-mode-map
- "Menu for Olivetti Mode."
- '("Olivetti"
- ["Hide Menu Bar" ignore
- :style toggle
- :selected olivetti-hide-menu-bar]
- ["Hide Tool Bar" ignore
- :style toggle
- :selected olivetti-hide-tool-bar]
- ["Hide Mode Line" (olivetti-set-mode-line 'toggle)
- :style toggle
- :selected olivetti-hide-mode-line]))
+ (set-window-margins (selected-window) margin margin)))
;; mode definition =====================================================
@@ -158,10 +122,6 @@ hidden."
(progn
(olivetti-set-mode-line)
(setq-local scroll-conservatively 101)
- (when olivetti-hide-menu-bar
- (menu-bar-mode 0))
- (when olivetti-hide-tool-bar
- (tool-bar-mode 0))
(when olivetti-delete-selection
(delete-selection-mode 1))
(add-hook 'window-configuration-change-hook
@@ -170,7 +130,7 @@ hidden."
(olivetti-set-mode-line 'exit)
(remove-hook 'window-configuration-change-hook
'olivetti-set-environment t)
- (set-window-margins nil nil)))
+ (redraw-frame (selected-frame))))
(provide 'olivetti)
;;; olivetti.el ends here
- [elpa] branch externals/olivetti created (now 46fdcfe), Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 01af0c7 003/134: Fixed doc, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 997ae52 001/134: Initial, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti bd06cf1 004/134: Added mode-map and menu, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 6533514 002/134: Added a bunch of custom options, allow body-width float, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti fd3d39d 006/134: Removed extraneous vars and fns,
Stefan Monnier <=
- [elpa] externals/olivetti 158db93 005/134: Added set-mode-line, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti af1d719 010/134: Revert "Using run-window-configuration-change-hook fn", Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 5cfe277 020/134: Changed body-width standard-value to 80, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 514bc46 009/134: Using run-window-configuration-change-hook fn, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 2363de6 008/134: Fixed margin reset on exit, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 885fb20 019/134: Added minimum-body-width, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 06bf86f 016/134: Add hook when changing fonts, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 30e3cbe 014/134: Added README/Commentary, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 869221a 013/134: Removed delete-selection-mode, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti ea4a25f 011/134: Obsessive cleanliness, Stefan Monnier, 2019/04/25