From 53db9402916822e673b3b49fcba26537e2416b59 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Wed, 20 Jan 2021 11:08:00 +0800 Subject: More QoL changes * basic.el (auto-fill-function): Hide auto-fill-function from the mode line. (auto-revert-mode): Hide auto-revert-mode from the mode line. * common.el (durand-hide-minor-mode): Use a simple macro to facilitate hiding. * elisp.el (eldoc-mode): Use a macro to hide instead. * eww-conf.el (eww-bookmarks-directory): Start Configuring EWW. * init.el ("durand-simple"): My simple utilities. ("search-conf.el"): Configuring searching. * search-conf.el (search-whitespace-regexp): White space as wild cards (isearch-lax-whitespace): as above (isearch-lazy-count): Count the matches (isearch-allow-scroll): Scrolling while searching (durand-search-replace-symbol): For quick refactoring * text-conf.el (assq): Hide using the macro instead. --- basic.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'basic.el') diff --git a/basic.el b/basic.el index 97b5345..7a53334 100644 --- a/basic.el +++ b/basic.el @@ -203,6 +203,16 @@ I stole from Protesilaos' dotemacs.") (set 'adaptive-fill-mode t) (add-hook 'text-mode-hook #'auto-fill-mode) +;;; Hide auto-fill mode in the mode line. + +;; The original value is " Fill" +(durand-hide-minor-mode auto-fill-function) + +;;; Hide auto-revert-mode + +;; The original is auto-revert-mode-text +(durand-hide-minor-mode auto-revert-mode) + ;;; enable all commands (set 'disabled-command-function nil) @@ -221,6 +231,7 @@ I stole from Protesilaos' dotemacs.") (define-key global-map (vector ?\s-o) #'other-window) (define-key global-map (vector ?\s-&) #'delete-other-windows) (define-key global-map (vector ?\s-à) #'delete-window) +(define-key global-map (vector ?\C-+) #'enlarge-window) (define-key global-map (vector ?\s-f) #'find-file) (define-key global-map (vector ?\s-v) #'durand-focus-completion-or-minibuffer) @@ -240,3 +251,4 @@ The remaining CONFIGS are evaluated after the package is loaded." (expand-file-name ,package-path ,package-dir)) (require ,package-name) ,@configs)) + -- cgit v1.2.3-18-g5258