diff options
author | Raúl Benencia <id@rbenencia.name> | 2024-10-27 16:51:36 -0700 |
---|---|---|
committer | Raúl Benencia <id@rbenencia.name> | 2024-10-27 16:51:36 -0700 |
commit | d1a611007164b1633fc6aa462084fe9541aaef88 (patch) | |
tree | c86d054e01182e30e4705a86583d6b2da7603a3d /.emacs.d/rul-lisp/packages/rul-wm.el | |
parent | 5e08f041f3435616f646fbf65f2b1ab3a2fbc03e (diff) |
emacs: mv logos.el to package rul-wm
Diffstat (limited to '.emacs.d/rul-lisp/packages/rul-wm.el')
-rw-r--r-- | .emacs.d/rul-lisp/packages/rul-wm.el | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.emacs.d/rul-lisp/packages/rul-wm.el b/.emacs.d/rul-lisp/packages/rul-wm.el index a0638a9..99480c3 100644 --- a/.emacs.d/rul-lisp/packages/rul-wm.el +++ b/.emacs.d/rul-lisp/packages/rul-wm.el @@ -63,6 +63,38 @@ Also see `prot-window-delete-popup-frame'." command) :config (setq olivetti-body-width 100)) +(use-package logos +:ensure t +:config + +;; If you want to use outlines instead of page breaks (the ^L) +(setq logos-outlines-are-pages t) +(setq logos-outline-regexp-alist + `((emacs-lisp-mode . "^;;;+ ") + (org-mode . "^\\*+ +") + (markdown-mode . "^\\#+ +") + )) + +;; These apply when `logos-focus-mode' is enabled. Their value is +;; buffer-local. +(setq-default logos-hide-mode-line t + logos-hide-buffer-boundaries t + logos-hide-fringe t + logos-variable-pitch nil + logos-buffer-read-only nil + logos-scroll-lock nil + logos-olivetti t + olivetti-body-width 100 + ) + + +(let ((map global-map)) + (define-key map [remap narrow-to-region] #'logos-narrow-dwim) + (define-key map [remap forward-page] #'logos-forward-page-dwim) + (define-key map [remap backward-page] #'logos-backward-page-dwim) + (define-key map (kbd "<f9>") #'logos-focus-mode)) +) + (use-package beframe :ensure t :hook (after-init . beframe-mode) |