2026-04-08T13:18:01
This commit is contained in:
@@ -27,6 +27,9 @@
|
||||
;; enable dracula theme
|
||||
;; (use-package dracula-theme :ensure t :config (load-theme 'dracula) :hook after-init)
|
||||
(use-package dracula-theme :ensure t :config (load-theme 'dracula))
|
||||
;; fixes line number scaling:
|
||||
(set-face-attribute 'line-number nil :inherit 'default)
|
||||
|
||||
|
||||
;; add time in modeline
|
||||
(setopt display-time-format "%a %d %T")
|
||||
@@ -56,15 +59,14 @@
|
||||
(global-set-key (kbd "C-x C-b") 'ibuffer)
|
||||
|
||||
;; regex isearches as default
|
||||
;; (global-set-key (kbd "C-s") 'isearch-forward-regexp)
|
||||
;; (global-set-key (kbd "C-r") 'isearch-backward-regexp)
|
||||
;; (global-set-key (kbd "C-M-s") 'isearch-forward)
|
||||
;; (global-set-key (kbd "C-M-r") 'isearch-backward)
|
||||
(global-set-key (kbd "C-s") 'isearch-forward-regexp)
|
||||
(global-set-key (kbd "C-r") 'isearch-backward-regexp)
|
||||
(global-set-key (kbd "C-M-S-s") 'isearch-forward)
|
||||
(global-set-key (kbd "C-M-S-r") 'isearch-backward)
|
||||
|
||||
(global-set-key (kbd "C-M-s") 'isearch-forward-regexp)
|
||||
(global-set-key (kbd "C-M-r") 'isearch-backward-regexp)
|
||||
;; (global-set-key (kbd "C-M-s") 'isearch-forward-regexp)
|
||||
;; (global-set-key (kbd "C-M-r") 'isearch-backward-regexp)
|
||||
|
||||
;; moved to consult-line
|
||||
|
||||
|
||||
;; apropos?
|
||||
@@ -123,8 +125,8 @@
|
||||
("M-y" . consult-yank-pop) ; orig. yank-pop
|
||||
;; Searching
|
||||
("C-S-f". consult-fd)
|
||||
("C-r" . consult-ripgrep)
|
||||
("C-s" . consult-line) ; Alternative: rebind C-s to use
|
||||
("C-S-r" . consult-ripgrep)
|
||||
("C-S-s" . consult-line) ; Alternative: rebind C-s to use
|
||||
("M-s s" . consult-line) ; consult-line instead of isearch, bind
|
||||
("M-s L" . consult-line-multi) ; isearch to M-s s
|
||||
("M-s o" . consult-outline)
|
||||
@@ -402,12 +404,12 @@
|
||||
(use-package pdf-tools :ensure t)
|
||||
(setq pdf-annot-activate-created-annotations t)
|
||||
(setq pdf-view-resize-factor 1.1)
|
||||
;; pdfview (add-hook 'pdf-view-mode-hook (lambda () (pdf-view-themed-minor-mode t))) maybe
|
||||
;; pdfview
|
||||
(add-hook 'pdf-view-mode-hook (lambda () (pdf-view-themed-minor-mode t)))
|
||||
(setq pdf-view-themed-minor-mode t)
|
||||
(add-to-list 'pdf-view-incompatible-modes 'display-line-numbers-mode)
|
||||
;; for pdf tools run (pdf-tools-install)
|
||||
|
||||
|
||||
(use-package auctex :ensure t)
|
||||
(use-package company-auctex :ensure t)
|
||||
(company-auctex-init)
|
||||
@@ -420,23 +422,63 @@
|
||||
|
||||
|
||||
;; TODO: citar maybe?
|
||||
;; (use-package! citar
|
||||
;; :custom
|
||||
;; (org-cite-global-bibliography '("/mnt/c/Users/q669019/Bachelor/Literatur/Bibliothek/Bibliothek.bib"))
|
||||
;; (citar-bibliography '("/mnt/c/Users/q669019/Bachelor/Literatur/Bibliothek/Bibliothek.bib")))
|
||||
(use-package citar
|
||||
:ensure t
|
||||
:custom
|
||||
(org-cite-global-bibliography '("~/Bachelor/Literatur/Bibliothek/Bibliothek.bib"))
|
||||
(citar-bibliography '("~/Bachelor/Literatur/Bibliothek/Bibliothek.bib")))
|
||||
|
||||
;; TODO: maybe
|
||||
;; (setq lsp-tex-server 'texlab)
|
||||
;; (setq +latex-viewers '(pdf-tools))
|
||||
|
||||
;; make invisible characters nire visible
|
||||
;; make invisible characters visible
|
||||
(setq glyphless-char-display-control '((format-control . empty-box) (variation-selectors . thin-space) (no-font . hex-code)))
|
||||
|
||||
(use-package yasnippet :ensure t)
|
||||
|
||||
;; TODO: yasnippet maybe?
|
||||
(setq yas-snippet-dirs
|
||||
'("~/.emacs.d/snippets" ;; personal snippets
|
||||
))
|
||||
(yas-reload-all)
|
||||
(yas-global-mode 1) ;; or M-x yas-reload-all if you've started YASnippet already.
|
||||
|
||||
;; Add yasnippet support for all company backends
|
||||
;; https://github.com/syl20bnr/spacemacs/pull/179
|
||||
(defvar company-mode/enable-yas t
|
||||
"Enable yasnippet for all backends.")
|
||||
|
||||
(defun company-mode/backend-with-yas (backend)
|
||||
(if (or (not company-mode/enable-yas) (and (listp backend) (member 'company-yasnippet backend)))
|
||||
backend
|
||||
(append (if (consp backend) backend (list backend))
|
||||
'(:with company-yasnippet))))
|
||||
|
||||
(setq company-backends (mapcar #'company-mode/backend-with-yas company-backends))
|
||||
|
||||
;; vterm
|
||||
(use-package vterm :ensure t)
|
||||
;; vterm doesnt work on windows so I'm only installing it, if the system is not windows
|
||||
(if (not (eq system-type 'windows-nt))
|
||||
(use-package vterm :ensure t))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;; (setq doom-font (font-spec :family "Go Mono" :size 18))
|
||||
;; (setq doom-variable-pitch-font (font-spec :family "Alegreya" :size 20))
|
||||
;; (append mixed-pitch-fixed-pitch-faces '(line-number line-number-current-line cursor))
|
||||
|
||||
|
||||
(windmove-default-keybindings)
|
||||
|
||||
|
||||
|
||||
;; TODO: emacs everywhere
|
||||
;; TODO: goggles
|
||||
;; TODO: vc gutter
|
||||
;; TODO: look at this: https://baty.net/posts/2025/03/i-went-a-little-nuts-with-remember-mode-in-emacs/
|
||||
|
||||
;; flycheck told me to do this:
|
||||
(provide 'init)
|
||||
|
||||
Reference in New Issue
Block a user