doom: Clean up config

This commit is contained in:
Julian Mutter 2024-01-26 11:26:42 +01:00
parent 77fee14469
commit 6b9801b7f2
3 changed files with 153 additions and 157 deletions

View File

@ -10,26 +10,18 @@
(setq user-full-name "Julian Mutter"
user-mail-address "julian.mutter@comumail.de")
(setq doom-theme 'doom-one
(setq doom-theme 'doom-dracula
doom-font (font-spec :family "Source Code Pro" :size 14)
doom-variable-pitch-font (font-spec :family "DejaVu Sans" :size 15))
;; (setq doom-font (font-spec :family "Source Code Pro" :size 14))
;; (setq doom-theme 'doom-dracula)
;; (setq display-line-numbers-type nil)
(setq display-line-numbers-type 'relative)
(setq display-line-numbers-type 'nil) ;; 'relative
(setq-default evil-escape-key-sequence "kj")
;; (after! company
;; (setq company-idle-delay nil))
;; (setq company-idle-delay 0.1))
;;; :ui modeline
;; An evil mode indicator is redundant with cursor shape
;; (setq doom-modeline-modal nil)
;; Open external terminal
(map! :leader :desc "Open external terminal" "o t" (cmd! (call-process-shell-command "alacritty &" nil 0)))
;; Open external file manager
(map! :leader :desc "Open external terminal" "o t" (cmd! (call-process-shell-command "$TERMINAL &" nil 0)))
(map! :leader :desc "Open external file explorer" "o e" (cmd! (call-process-shell-command "thunar &" nil 0)))
;; Remap font scaling keybindings to make more sense
@ -42,14 +34,16 @@
(map! :leader "c X" #'flycheck-list-errors)
(map! :desc "Save" :g "C-s" #'fd-save-and-escape)
(map! :leader "w 1" #'delete-other-windows)
;; (map! :leader "w 1" #'delete-other-windows)
(map! :leader "t p" #'+popup/toggle)
;; Useful for recompiling or running a project
(map! :nvi "<f5>" #'projectile-repeat-last-command)
;; Do not use autosave when using vim save command
(evil-ex-define-cmd "write" #'fd-format-without-autosave)
;; Select other window by number
(dotimes (counter 9)
(let ((command (format "(map! :leader \"%d\" #'winum-select-window-%d)"
(1+ counter) (1+ counter))))
@ -57,8 +51,6 @@
(map! :leader "r" #'quickrun)
(setq-default evil-escape-key-sequence "kj")
(defun fd-format-without-autosave()
(interactive)
(let ((current-prefix-arg 4)) ;; pass universal argument
@ -74,9 +66,11 @@
;; Do not ask before exiting emacs
(setq confirm-kill-emacs nil)
;; Open pdf files with external reader
(openwith-mode t)
(setq openwith-associations '(("\\.pdf\\'" "evince" (file))))
;; Org settings
(setq org-directory "~/Nextcloud/org"
org-roam-directory "~/Nextcloud/org/roam")
@ -153,6 +147,7 @@
(call-interactively 'org-latex-preview)
))
;; Custom time format display
(setq-default org-display-custom-times t)
(setq org-time-stamp-custom-formats '("<%d.%m.%Y %a>" . "<%d.%m.%Y %a %H:%M>"))

View File

@ -46,7 +46,7 @@
;;tabs ; a tab bar for Emacs
(treemacs +lsp) ; a project drawer, like neotree but cooler
;;unicode ; extended unicode support for various languages
vc-gutter ; vcs diff in the fringe
(vc-gutter +pretty) ; vcs diff in the fringe
vi-tilde-fringe ; fringe tildes to mark beyond EOB
(window-select +numbers) ; visually switch windows
workspaces ; tab emulation, persistence & separate workspaces
@ -74,10 +74,10 @@
vc ; version-control and Emacs, sitting in a tree
:term
eshell ; the elisp shell that works everywhere
;;eshell ; the elisp shell that works everywhere
;;shell ; simple shell REPL for Emacs
;;term ; basic terminal emulator for Emacs
vterm ; the best terminal emulation in Emacs
;;vterm ; the best terminal emulation in Emacs
:checkers
(syntax +childframe) ; tasing you for every semicolon you forget
@ -85,13 +85,14 @@
;; grammar ; tasing grammar mistake every you make
:tools
ansible
;; ansible
biblio ; Writes a PhD for you (citation needed)
(debugger +lsp) ; FIXME stepping through code, to help you add bugs
;;collab ; buffers with friends
;;debugger ; FIXME stepping through code, to help you add bugs
direnv
docker
;;editorconfig ; let someone else argue about tabs vs spaces
ein ; tame Jupyter notebooks with emacs
;; ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
(lookup +docsets +dictionary) ; navigate your code and its documentation
@ -105,8 +106,8 @@
;;taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux
;;tree-sitter ; syntax and parsing, sitting in a tree...
;;upload ; map local to remote projects via ssh/ftp
tree-sitter
:os
(:if IS-MAC macos) ; improve compatibility with macOS
@ -169,7 +170,7 @@
;;(scheme +guile) ; a fully conniving family of lisps
sh ; she sells {ba,z,fi}sh shells on the C xor
;;sml
solidity ; do you need a blockchain? No.
;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
;;web ; the tubes
@ -186,7 +187,7 @@
;;emms
;;everywhere ; *leave* Emacs!? You must be joking
;;irc ; how neckbeards socialize
;; rss ; emacs as an RSS reader
;;(rss +org) ; emacs as an RSS reader
;;twitter ; twitter client https://twitter.com/vnought
:config

View File

@ -9,7 +9,7 @@
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package)
(package! company-quickhelp)
;; (package! company-quickhelp)
(package! github-tags) ;; Needed for lsp-ltex auto-install to work
(package! lsp-ltex)