summaryrefslogtreecommitdiff
path: root/basic.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-01-20 11:08:00 +0800
committerJSDurand <mmemmew@gmail.com>2021-01-20 17:10:01 +0800
commit53db9402916822e673b3b49fcba26537e2416b59 (patch)
tree7f999ef9f995871d53051b487cd347876c5e43ce /basic.el
parent4d28d444af32ddf4af5900786473fadacc43e4b1 (diff)
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.
Diffstat (limited to 'basic.el')
-rw-r--r--basic.el12
1 files changed, 12 insertions, 0 deletions
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))
+