summaryrefslogtreecommitdiff
path: root/modules/emacs/README.org
diff options
context:
space:
mode:
Diffstat (limited to 'modules/emacs/README.org')
-rw-r--r--modules/emacs/README.org62
1 files changed, 32 insertions, 30 deletions
diff --git a/modules/emacs/README.org b/modules/emacs/README.org
index 3ed48b3..4ccec53 100644
--- a/modules/emacs/README.org
+++ b/modules/emacs/README.org
@@ -33,7 +33,8 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
** Theme and font
#+begin_src emacs-lisp :tangle yes
-(use-package modus-themes)
+(use-package modus-themes
+ :ensure t)
;; (use-package kanagawa-theme)
(load-theme 'wheatgrass t)
@@ -57,8 +58,10 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
* Utility
** Searching
#+begin_src emacs-lisp :tangle yes
-(use-package rg)
+(use-package rg
+ :ensure t)
(use-package ctrlf
+ :ensure t
:config (ctrlf-mode +1))
#+end_src
** Age encryption
@@ -81,10 +84,12 @@ Configuration to automagically open age files, and to encrypt them correctly to
** Nerd icons
#+begin_src emacs-lisp :tangle yes
(use-package nerd-icons
+ :ensure t
:custom
(nerd-icons-font-family "Iosevka Nerd Font"))
(use-package nerd-icons-completion
+ :ensure t
:after nerd-icons
:after marginalia
:hook (marginalia-mode . nerd-icons-completion-marginal)
@@ -92,6 +97,7 @@ Configuration to automagically open age files, and to encrypt them correctly to
(nerd-icons-completion-mode))
(use-package nerd-icons-dired
+ :ensure t
:hook (dired-mode . nerd-icons-dired-mode)
:custom (dired-listing-switches "-alh"))
@@ -100,6 +106,7 @@ Configuration to automagically open age files, and to encrypt them correctly to
To integrate with nix shells.
#+begin_src emacs-lisp :tangle yes
(use-package envrc
+ :ensure t
:config (envrc-global-mode))
#+end_src
** Magit
@@ -107,8 +114,10 @@ Configurations for magit
*** Use Magit
#+begin_src emacs-lisp :tangle yes
(use-package magit
+ :ensure t
:custom (magit-process-finish-apply-ansi-colors t))
(use-package magit-delta
+ :ensure t
:hook (magit-mode . magit-delta-mode))
#+end_src
@@ -119,6 +128,7 @@ Configurations for magit
To interact with gitlab and github.
#+begin_src emacs-lisp :tangle yes
(use-package forge
+ :ensure t
:after magit)
#+end_src
@@ -126,15 +136,18 @@ To interact with gitlab and github.
Pretty minibuffer support
#+begin_src emacs-lisp :tangle yes
(use-package vertico
+ :ensure t
:config (vertico-mode))
(use-package orderless
+ :ensure t
:custom
(completion-styles '(orderless basic))
(completion-category-defaults nil)
(completion-category-overrides '((file (styles basic partial-completion)))))
(use-package marginalia
+ :ensure t
:config (marginalia-mode))
#+end_src
** Projects
@@ -167,6 +180,7 @@ Pretty minibuffer support
Better help defaults
#+begin_src emacs-lisp :tangle yes
(use-package helpful
+ :ensure t
:config
(global-set-key (kbd "C-h f") #'helpful-callable)
(global-set-key (kbd "C-h v") #'helpful-variable)
@@ -174,11 +188,13 @@ Better help defaults
(global-set-key (kbd "C-h k") #'helpful-key))
(use-package which-key
+ :ensure t
:config (which-key-mode))
#+end_src
** Bind key
#+begin_src emacs-lisp :tangle yes
-(use-package bind-key)
+(use-package bind-key
+ :ensure t)
#+end_src
** Eglot
Language server support. Already comes installed but used to configure additional language servers.
@@ -189,6 +205,7 @@ Language server support. Already comes installed but used to configure additiona
(use-package eglot-booster
:after eglot
+ :ensure t
:config (eglot-booster-mode))
#+end_src
@@ -196,6 +213,7 @@ Language server support. Already comes installed but used to configure additiona
Completion popup system
#+begin_src emacs-lisp :tangle yes
(use-package corfu
+ :ensure t
:config (global-corfu-mode)
:custom
(corfu-auto t)
@@ -205,7 +223,8 @@ Completion popup system
#+end_src
** Vterm
#+begin_src emacs-lisp :tangle yes
-(use-package eat)
+(use-package eat
+ :ensure t)
#+end_src
** Compilation
Add support for ansi escape codes in compilation
@@ -218,6 +237,7 @@ Add support for ansi escape codes in compilation
** Pdf reader
#+begin_src emacs-lisp :tangle yes
(use-package pdf-tools
+ :ensure t
:defer t
:mode ("\\.pdf\\'" . pdf-view-mode)
:magic ("%PDF" . pdf-view-mode))
@@ -226,6 +246,7 @@ Add support for ansi escape codes in compilation
Minor mode to allow opening files in chunks
#+begin_src emacs-lisp :tangle yes
(use-package vlf
+ :ensure t
:config
(require 'vlf-setup)
(custom-set-variables
@@ -245,6 +266,7 @@ It also relies on python lsp server with builtin ruff support.
** Nix
#+begin_src emacs-lisp :tangle yes
(use-package nix-mode
+ :ensure t
:hook (nix-mode . eglot-ensure))
#+end_src
** Rust
@@ -259,21 +281,25 @@ Try to use the package.
** Markdown
#+begin_src emacs-lisp :tangle yes
(use-package markdown-mode
+ :ensure t
:mode "\\.md\\'")
#+end_src
** Coq
#+begin_src emacs-lisp :tangle yes
(use-package proof-general
+ :ensure t
:custom
(proof-splash-enable nil))
(use-package company-coq
+ :ensure t
:hook (coq-mode . company-coq-mode))
#+end_src
* Personal
** Org mode
#+begin_src emacs-lisp :tangle yes
(use-package org
+ :ensure 'nil
:hook (org-mode . org-indent-mode)
:bind ("C-c a" . org-agenda)
:config
@@ -339,34 +365,9 @@ Try to use the package.
In order to publish files to hugo from org.
#+begin_src emacs-lisp :tangle yes
(use-package ox-hugo
+ :ensure t
:after ox)
#+end_src
-** Calendar
-try out emacs calfw
-#+begin_src emacs-lisp :tangle yes
-(use-package calfw)
-(use-package calfw-org
- :bind ("C-c c l" . cfw:open-org-calendar)
- :custom (cfw:org-overwrite-default-keybinding t))
-#+end_src
-** Email
-*** RSS feed reader
-#+begin_src emacs-lisp :tangle yes
-(use-package elfeed
- :custom
- (elfeed-feeds
- '(("https://xeiaso.net/blog.rss" nixos)
- ("https://smallcultfollowing.com/babysteps//atom.xml" rust)
- ("https://fasterthanli.me/index.xml" rust nixos)
- ("http://radar.spacebar.org/f/a/weblog/rss/1" tom7)
- ("https://matklad.github.io/feed.xml" rust zig)
- ("https://blog.m-ou.se/index.xml" rust)
- ("https://without.boats/index.xml" rust)
- )))
-
-#+end_src
-
-#+RESULTS:
*** Mu4e
**** Setting up mu4e.
@@ -388,6 +389,7 @@ Helper functions, to try to discover which mail pertains to which account.
Actual mu4e definition
#+begin_src emacs-lisp :tangle yes
(use-package mu4e
+ :ensure t
:bind ("C-c m" . mu4e)
:config
:custom