diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-01-15 09:19:09 -0800 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-01-15 09:19:09 -0800 |
| commit | a39f0291ca6cd04a8128825f6b068f177694f8cb (patch) | |
| tree | f0d3874541fca2db67e99f1804c37c64e2088502 /emacs | |
| parent | d65d477b16a553cbf80011ccf96c980a65970e6c (diff) | |
emacs: log mode with autorevert and vc auto revert
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index fda4b98..2f44b30 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -321,6 +321,17 @@ With ARG, don't save the current layout." (my/keys-mode 1)) +(progn ; mode for log files + (define-derived-mode + generic-log-mode + fundamental-mode + "Log" + "Major mode for following log files." + (setq-local auto-revert-verbose nil) + (auto-revert-tail-mode 1)) + (add-to-list 'auto-mode-alist + '("\\.log\\'" . generic-log-mode))) + ;;; Builtin config: (use-package server ; allow emacsclient @@ -533,6 +544,7 @@ With ARG, don't save the current layout." enable-recursive-minibuffers t frame-resize-pixelwise t) (electric-pair-mode 1) +(vc-auto-revert-mode 1) ;;; External packages: |
