some more tidying up

This commit is contained in:
Mateus Rodrigues
2026-07-10 18:15:18 +01:00
parent 48d7cbf15f
commit e06fd84dff
2 changed files with 36 additions and 52 deletions

View File

@@ -11,33 +11,27 @@
;; Set column width to 88 characters
(setq-default fill-column 88)
;;;; Load my packages
;; Default theme
;; (use-package zenburn-theme
;; :demand t
;; :config
;; (load-theme 'zenburn t))
(load-theme 'modus-vivendi-tinted t)
;; QOL packages
(use-package helpful
:bind (("C-h f" . #'helpful-callable)
("C-h v" . #'helpful-variable)
("C-h k" . #'helpful-key)
("C-h x" . #'helpful-command)))
:bind (("C-h f" . helpful-callable)
("C-h v" . helpful-variable)
("C-h k" . helpful-key)
("C-h x" . helpful-command)))
;; Org
(use-package org
;; The following binds are always needed. Why?
:bind (("\C-cl" . 'org-store-link)
("\C-ca" . 'org-agenda)
("\C-cc" . 'org-capture))
:bind (("\C-cl" . org-store-link)
("\C-ca" . org-agenda)
("\C-cc" . org-capture))
:hook ((org-shiftup-final . windmove-up)
(org-shiftleft-final . windmove-left)
(org-shiftdown-final-hook . windmove-down)
(org-shiftdown-final . windmove-down)
(org-shiftright-final . windmove-right))
:config (load "~/.emacs.d/elisp/org-setup.el"))
(use-package org-ref)
;; Writing
@@ -56,12 +50,12 @@
;; Reading
(use-package nov
:hook ((nov-mode . visual-line-mode)
(nov-mode . visual-fill-column-mode)
(nov-mode . writeroom-mode))
:config
(setq nov-text-width t)
(setq visual-fill-column-center-text t)
(add-hook 'nov-mode-hook 'visual-line-mode)
(add-hook 'nov-mode-hook 'visual-fill-column-mode)
(add-hook 'nov-mode-hook 'writeroom-mode)
(setq nov-text-width t
visual-fill-column-center-text t)
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)))
(use-package pdf-tools
@@ -85,7 +79,7 @@
;; git
(use-package magit
:demand t
:bind ("C-x g" . 'magit-status))
:bind ("C-x g" . magit-status))
;; code completion
(use-package company
@@ -96,7 +90,7 @@
;; TODO I'm only using demand so <f3> is set from the start
(use-package treemacs
:demand t
:bind ("<f3>" . 'treemacs))
:bind ("<f3>" . treemacs))
;; Javascript and React
(use-package rjsx-mode