Emacs improvements

This commit is contained in:
Andrea Ciceri 2022-01-20 13:35:13 +01:00
parent b12f44b548
commit d86248ea35
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
3 changed files with 20 additions and 10 deletions
pkgs/emacs
users/profiles/emacs/emacs.d/config

View file

@ -16,6 +16,7 @@ emacsWithPackages (
evil
evil-collection
fira-code-mode
good-scroll
haskell-mode
helm
helm-ag

View file

@ -4,7 +4,8 @@
modus-themes-region '(bg-only no-extend))
(modus-themes-load-themes)
:config
(modus-themes-load-vivendi)
(modus-themes-load-operandi) ;white theme
;; (modus-themes-load-vivendi) ;black theme
:bind ("<f5>" . modus-themes-toggle)
)
@ -29,7 +30,15 @@
(setq-default visual-fill-column-center-text t
visual-fill-column-fringes-outside-margins nil))
(use-package minimap)
(use-package minimap
:custom ((minimap-window-location 'right))
:bind ("<f7>" . minimap-mode))
(use-package good-scroll
:config (good-scroll-mode 1)
:custom
:bind (([next] #'good-scroll-up-full-screen)
([prior] #'good-scroll-down-full-screen)))

View file

@ -24,14 +24,14 @@
'((python . t)))
:hook
((org-mode . auto-fill-mode) ;refill-mode breaks org headings
;(org-mode . org-num-mode)
(org-mode . (lambda ()
(dolist (face '((org-level-1 1.5)
(org-level-2 1.4)
(org-level-3 1.3)
(org-level-4 1.2)
(org-level-5 1.1)))
(set-face-attribute (car face) nil :weight 'semi-bold :height (cadr face)))))
;; (org-mode . org-num-mode)
;; (org-mode . (lambda ()
;; (dolist (face '((org-level-1 1.5)
;; (org-level-2 1.4)
;; (org-level-3 1.3)
;; (org-level-4 1.2)
;; (org-level-5 1.1)))
;; (set-face-attribute (car face) nil :weight 'semi-bold :height (cadr face)))))
(org-mode . prettify-symbols-mode)))
(use-package org-fragtog