mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2026-11-22 22:28:59 +01:00
Compare commits
4 Commits
2912d3842a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 89c68dd197 | |||
| 9796948202 | |||
| 86c3b994de | |||
| 4ccc82f632 |
3
init.el
3
init.el
@@ -139,6 +139,7 @@
|
||||
(require 'init-typst)
|
||||
(require 'init-editorconfig)
|
||||
(require 'init-flymake)
|
||||
(require 'init-latex)
|
||||
|
||||
;; interactive modes
|
||||
(require 'init-eshell)
|
||||
@@ -172,6 +173,8 @@
|
||||
(require 'init-ibuffer)
|
||||
(require 'init-printing)
|
||||
(require 'init-smarter-than-emacs)
|
||||
(require 'init-dabbrev)
|
||||
(require 'init-highlight)
|
||||
(require 'init-marginalia)
|
||||
(require 'init-avy)
|
||||
(require 'init-ui)
|
||||
|
||||
8
lisp/init-dabbrev.el
Normal file
8
lisp/init-dabbrev.el
Normal file
@@ -0,0 +1,8 @@
|
||||
;; -*- lexical-binding: nil; -*-
|
||||
|
||||
|
||||
(use-package dabbrev
|
||||
:commands dabbrev-capf)
|
||||
|
||||
|
||||
(provide 'init-dabbrev)
|
||||
14
lisp/init-highlight.el
Normal file
14
lisp/init-highlight.el
Normal file
@@ -0,0 +1,14 @@
|
||||
;; -*- lexical-binding: nil; -*-
|
||||
|
||||
|
||||
(use-package hi-lock
|
||||
:ensure nil
|
||||
|
||||
:config
|
||||
;; This disables the hi-lock-mode keymap, which conflicts with our
|
||||
;; window hydra (C-x w) and we don't need hi-lock keys anyway )
|
||||
(eval-after-load 'hi-lock '(progn
|
||||
(define-key hi-lock-map (kbd "C-x w") 'hydra-windows/body))))
|
||||
|
||||
|
||||
(provide 'init-highlight)
|
||||
34
lisp/init-latex.el
Normal file
34
lisp/init-latex.el
Normal file
@@ -0,0 +1,34 @@
|
||||
;; -*- lexical-binding: nil; -*-
|
||||
|
||||
(setopt text-mode-ispell-word-completion nil)
|
||||
|
||||
(defface punctuation-error-face
|
||||
'((t (:foreground "Red")))
|
||||
"red"
|
||||
:group 'latex)
|
||||
|
||||
(defun tvd-latex-punctuation()
|
||||
"Highlight german speech punctuation errors. See https://korrektur.de/woertliche-rede-zeichensetzung.
|
||||
|
||||
The following errors are highlighted:
|
||||
- a dot following closing quotes, as: ``done''.
|
||||
- a dot before the closing quote if followed by a comma, as: ``boo.'', sagte er.
|
||||
- an uppercase word following an opening quote after a comma, as: ... said, ``Doch.''"
|
||||
(interactive)
|
||||
(highlight-regexp "''\\." 'punctuation-error-face)
|
||||
(highlight-regexp "\\.''," 'punctuation-error-face)
|
||||
(highlight-regexp ", ``[A-Z]" 'punctuation-error-face))
|
||||
|
||||
(use-package latex
|
||||
:ensure nil
|
||||
|
||||
:mode
|
||||
("\\.tex\\'" . latex-mode))
|
||||
|
||||
(add-hook 'latex-mode-hook
|
||||
(lambda ()
|
||||
(add-hook 'completion-at-point-functions #'dabbrev-capf 20 t)
|
||||
(tvd-latex-punctuation)))
|
||||
|
||||
|
||||
(provide 'init-latex)
|
||||
@@ -272,7 +272,13 @@ a remote file anytime and from everywhere I am by just entering :"
|
||||
;; clever and nice looking and feeling completion package, candidates
|
||||
;; show up in a mini popup, very nice
|
||||
(use-package corfu
|
||||
:hook ((prog-mode . corfu-mode))
|
||||
:init
|
||||
(global-corfu-mode)
|
||||
|
||||
;; :hook ((prog-mode . corfu-mode)
|
||||
;; (plain-tex-mode . corfu-mode)
|
||||
;; (tex-mode . corfu-mode)
|
||||
;; (latex-mode . corfu-mode))
|
||||
|
||||
:custom
|
||||
(corfu-quit-no-match t)
|
||||
@@ -285,7 +291,7 @@ a remote file anytime and from everywhere I am by just entering :"
|
||||
("TAB" . corfu-next)
|
||||
([tab] . corfu-next)
|
||||
("S-TAB" . corfu-previous)
|
||||
([backtab] . corfu-previous)))
|
||||
([backtab] . corfu-next)))
|
||||
|
||||
|
||||
;; much better experience to seach current buffer, consult-line would
|
||||
|
||||
Reference in New Issue
Block a user