upd to emacs 31

This commit is contained in:
2026-09-14 20:49:31 +02:00
parent d81c8c919a
commit a0cd8e81bf
82 changed files with 129 additions and 40 deletions

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; If I ever use custom-group to customize a mode, then I create a ;; If I ever use custom-group to customize a mode, then I create a
;; manual config section for it using the values, custom has added ;; manual config section for it using the values, custom has added
;; here. So, in normal times this should be empty, but needs to exist. ;; here. So, in normal times this should be empty, but needs to exist.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; ** .emacs config version ;; ** .emacs config version
;; My emacs config has a version (consisting of a timestamp with a ;; My emacs config has a version (consisting of a timestamp with a

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** ANSI-TERM (inferior shells/interpreters and REPLs) ;; *** ANSI-TERM (inferior shells/interpreters and REPLs)
;; I use ansi term for inferior shells only. ;; I use ansi term for inferior shells only.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package emms (use-package emms
:defer nil :defer nil

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; ** More scratch space ;; ** More scratch space
;; *** Text scratch ;; *** Text scratch
;; Sometimes I need a text mode scratch buffer while scratch is ;; Sometimes I need a text mode scratch buffer while scratch is

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; see https://karthinks.com/software/avy-can-do-anything/ ;; see https://karthinks.com/software/avy-can-do-anything/
(use-package avy (use-package avy

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** C ;; *** C
;; doesn't work in emacs 30 anymore ;; doesn't work in emacs 30 anymore

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Cisco Mode ;; *** Cisco Mode
;; Written by myself many years ago, but I'm still using it daily to ;; Written by myself many years ago, but I'm still using it daily to

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** IDO mode ;; *** IDO mode
;; There are other completion enhancement packages available like ivy ;; There are other completion enhancement packages available like ivy

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** conf-mode ;; *** conf-mode
;; conf-mode annoyingly overwrites the global keybinding C-c C-c with ;; conf-mode annoyingly overwrites the global keybinding C-c C-c with

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Config::General mode ;; *** Config::General mode
;; **** Config and doc ;; **** Config and doc
;; [[https://github.com/TLINDEN/config-general-mode][config-general-mode]] (also on Melpa). ;; [[https://github.com/TLINDEN/config-general-mode][config-general-mode]] (also on Melpa).

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(defun tvd/csv-mode-setup () (defun tvd/csv-mode-setup ()
(csv-align-mode t) (csv-align-mode t)
(toggle-truncate-lines 1) (toggle-truncate-lines 1)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; maintain daemon.de hugo website ;; maintain daemon.de hugo website
;; (require 'subr-x) ;; (require 'subr-x)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package dictcc (use-package dictcc
:config :config
(defalias 'dict 'dictcc)) (defalias 'dict 'dictcc))

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Dired ;; *** Dired
;; I use dired for two things: from inside magit as a convenient way ;; I use dired for two things: from inside magit as a convenient way

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; Display settings ;;; Display settings
;; better visibility of cursor in console sessions ;; better visibility of cursor in console sessions

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Dumpjump ;; *** Dumpjump
;; https://github.com/jacktasia/dumb-jump/raw/master/dumb-jump.el ;; https://github.com/jacktasia/dumb-jump/raw/master/dumb-jump.el
(use-package dumb-jump (use-package dumb-jump

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Ediff Config ;; *** Ediff Config
;; Force ediff to use 1 frame (the current) and not open a new frame ;; Force ediff to use 1 frame (the current) and not open a new frame
@@ -36,45 +37,6 @@
;; *** Smerge Config
;; smerge-mode is being issued during editing of conflicts from magit,
;; however, I hate its default prefix, but don't have any practical
;; prefixes left AND am using it far too rare to deserve its own
;; prefix. So just a hydra will do.
(when (fboundp 'defhydra)
(defhydra hydra-smerge (:timeout 30.0 :exit nil)
"
^Smerge Mode^
^^--------------------------------------------------------------
_n_: next conflict _u_: keep upper _s_: swap
_p_: prev conflict _l_: keep lower _h_: highlight
_e_: Ediff _b_: keep base _r_: resolve
_q_: quit _RET_: keep hunk@point _R_: revert
^^--------------------------------------------------------------
Reach this hydra with <C-x m>
^^--------------------------------------------------------------
"
("n" smerge-next nil)
("p" smerge-prev nil)
("u" smerge-keep-upper nil)
("l" smerge-keep-lower nil)
("b" smerge-keep-base nil)
("RET" smerge-keep-current nil)
("h" smerge-refine nil)
("s" smerge-swap nil)
("r" smerge-resolve nil)
("R" undo-tree-undo nil)
("e" smerge-ediff nil :color blue)
("q" nil nil :color blue))
(global-set-key (kbd "C-x m") 'hydra-smerge/body)
(defalias 'merge 'hydra-smerge/body))
(provide 'init-ediff) (provide 'init-ediff)
;;; init-ediff.el ends here ;;; init-ediff.el ends here

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** https://github.com/editorconfig/editorconfig-emacs#readme ;; *** https://github.com/editorconfig/editorconfig-emacs#readme
(use-package editorconfig (use-package editorconfig

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; setup el-get for non-package modes ;;; setup el-get for non-package modes
;; This MUST be the first init file to be loaded. ;; This MUST be the first init file to be loaded.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Emacs LISP interactive ;; *** Emacs LISP interactive
;; General configuration for all things elisp. ;; General configuration for all things elisp.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package elvish-mode (use-package elvish-mode
:mode "\\.elv\\'" :mode "\\.elv\\'"

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** eShell stuff, or if interactive stuff is needed, use ansi-term ;; *** eShell stuff, or if interactive stuff is needed, use ansi-term
;; I am a hardcore bash user, but from time to time eshell is good ;; I am a hardcore bash user, but from time to time eshell is good

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** EWW browser stuff ;; *** EWW browser stuff
;; Emacs has a builtin browser, which is not too bad. ;; Emacs has a builtin browser, which is not too bad.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; FIXME: how to force bash mode? ;; FIXME: how to force bash mode?
(use-package flymake (use-package flymake

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Followcursor Mode ;; *** Followcursor Mode
;; [[https://github.com/TLINDEN/followcursor-mode][source on github]] ;; [[https://github.com/TLINDEN/followcursor-mode][source on github]]

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; * Productivity Functions ;; * Productivity Functions
;; -------------------------------------------------------------------------------- ;; --------------------------------------------------------------------------------
;; ** goto line with tmp line numbers ;; ** goto line with tmp line numbers

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; * Global Key Bindings ;;; * Global Key Bindings
;; -------------------------------------------------------------------------------- ;; --------------------------------------------------------------------------------
;; ** c-h != delete ;; ** c-h != delete

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Go Lang ;; *** Go Lang
(use-package go-mode (use-package go-mode

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; https://github.com/leoliu/ack-el ;; https://github.com/leoliu/ack-el
(defun tvd-kill-ack() (defun tvd-kill-ack()

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Help Mode ;; *** Help Mode
;; I even customize help windows! ... at least a little :) ;; I even customize help windows! ... at least a little :)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; Used here and there below, loaded as early as possible ;; Used here and there below, loaded as early as possible
(use-package hydra) (use-package hydra)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** iBuffer mode ;; *** iBuffer mode
;; iBuffer is a great interactive buffer management tool included with ;; iBuffer is a great interactive buffer management tool included with

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; ** load imenu ;;; ** load imenu
(require 'imenu) (require 'imenu)
(define-key global-map [C-down-mouse-2] 'imenu) (define-key global-map [C-down-mouse-2] 'imenu)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Highlighting Indentation ;; *** Highlighting Indentation
;; provides: highlight-indentation-mode and highlight-indentation-current-column-mode ;; provides: highlight-indentation-mode and highlight-indentation-current-column-mode
(use-package highlight-indentation (use-package highlight-indentation

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** INFO Mode ;; *** INFO Mode
(require 'info) (require 'info)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(defun tvd-kill-ro-buffer() (defun tvd-kill-ro-buffer()
(interactive) (interactive)
(when buffer-read-only (when buffer-read-only

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; LSP mode ;; LSP mode
(use-package lsp-mode (use-package lsp-mode
:config :config

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package lua-mode (use-package lua-mode
:mode "\\.lua\\'" :mode "\\.lua\\'"

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** MACROs ;; *** MACROs
;; help: [[https://www.emacswiki.org/emacs/KeyboardMacrosTricks][emacswiki macro tricks]]. ;; help: [[https://www.emacswiki.org/emacs/KeyboardMacrosTricks][emacswiki macro tricks]].
@@ -138,6 +139,9 @@ last kbd-macro will be executed."
(if (not (get-buffer "macros.el")) (if (not (get-buffer "macros.el"))
(find-file tvd-macro-file)) (find-file tvd-macro-file))
(with-current-buffer "macros.el" (with-current-buffer "macros.el"
(goto-char (point-min))
(insert ";; -*- lexical-binding: nil; -*-")
(newline)
(goto-char (point-max)) (goto-char (point-max))
(newline) (newline)
(insert ";;") (insert ";;")

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Magit ;; *** Magit
(when (fboundp 'defhydra) (when (fboundp 'defhydra)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; Enable rich annotations using the Marginalia package ;; Enable rich annotations using the Marginalia package
(use-package marginalia (use-package marginalia
;; Either bind `marginalia-cycle' globally or only in the minibuffer ;; Either bind `marginalia-cycle' globally or only in the minibuffer

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Markdown ;; *** Markdown
;; I rarely use markdown, but sometimes I stumble upon such a file and ;; I rarely use markdown, but sometimes I stumble upon such a file and

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package ement (use-package ement
:custom :custom
(ement-save-sessions t) (ement-save-sessions t)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** MMM Mode ;; *** MMM Mode
(use-package mmm-mode (use-package mmm-mode
:config :config

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; ** mode-line setup (must be the last mode) ;; ** mode-line setup (must be the last mode)
;; I just append the current version of my emacs config and leave out ;; I just append the current version of my emacs config and leave out

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** narrowing (no mode but fits here) ;; *** narrowing (no mode but fits here)
;; I use narrowing quite frequently, so here are some enhancements. ;; I use narrowing quite frequently, so here are some enhancements.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Novel Mode - Screen Reader ;; *** Novel Mode - Screen Reader
;; my own emacs screen reader, very handy to read docs on the road. ;; my own emacs screen reader, very handy to read docs on the road.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Occur ;; *** Occur
;; https://oremacs.com/2015/01/26/occur-dwim/ ;; https://oremacs.com/2015/01/26/occur-dwim/
;; https://github.com/abo-abo/hydra/wiki/Emacs ;; https://github.com/abo-abo/hydra/wiki/Emacs

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package org-present (use-package org-present
:config :config

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** org mode ;; *** org mode
;; I use org mode to take notes mostly at work. I also track projects ;; I use org mode to take notes mostly at work. I also track projects

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** org agenda mode ;; *** org agenda mode
;; I use org mode for along time now, primarily at work, but did not ;; I use org mode for along time now, primarily at work, but did not

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; https://elpa.gnu.org/packages/orgalist.html ;; https://elpa.gnu.org/packages/orgalist.html
(use-package orgalist) (use-package orgalist)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** org table mode ;; *** org table mode
;; I'm so used to lovely org mode tables, I need them everywhere! ;; I'm so used to lovely org mode tables, I need them everywhere!

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** outline mode ;; *** outline mode
;; I use the very same cycle style as in org mode: when on a heading, ;; I use the very same cycle style as in org mode: when on a heading,

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** cperl mode ;; *** cperl mode
;; I am a perl addict. I love it, therefore, emacs must be prepared ;; I am a perl addict. I love it, therefore, emacs must be prepared

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** POD mode ;; *** POD mode
;; I LOVE POD! POD is the documentation format of perl and there's a ;; I LOVE POD! POD is the documentation format of perl and there's a

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Printing ;; *** Printing
;; overwrites printing default menu, access via menu File => Print ;; overwrites printing default menu, access via menu File => Print
;; or: ;; or:

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Projectile ;; *** Projectile
(use-package projectile (use-package projectile
:defer nil :defer nil

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(use-package python (use-package python
:mode ("\\.py\\'" . python-mode) :mode ("\\.py\\'" . python-mode)
:interpreter ("python" . python-mode) :interpreter ("python" . python-mode)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; *** Recent Files ;;; *** Recent Files
;; You know the file you edited yesterday had "kri" in its name, but ;; You know the file you edited yesterday had "kri" in its name, but

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** rust mode ;; *** rust mode
(use-package rust-mode (use-package rust-mode
:config :config

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** sgml ;; *** sgml
;; Used for XML and the likes. ;; Used for XML and the likes.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Shell-Script Mode ;; *** Shell-Script Mode
;; C-c C-c [un-]comments everywhere, force in shell-script-mode as well ;; C-c C-c [un-]comments everywhere, force in shell-script-mode as well

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; *** Smarter M-x Mode (smex) ;;; *** Smarter M-x Mode (smex)
;; This is really cool and I don't know how I could ever live without it. ;; This is really cool and I don't know how I could ever live without it.
@@ -214,7 +215,7 @@ targets."
:config :config
(when (fboundp 'persp-new) (when (fboundp 'persp-new)
(consult-customize consult--source-buffer :hidden t :default nil) (consult-customize consult-source-buffer :hidden t :default nil)
(defvar consult--source-perspective (defvar consult--source-perspective
(list :name "Perspective" (list :name "Perspective"

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; I'm trying to migrate to smart-parens, since it supports all of ;; I'm trying to migrate to smart-parens, since it supports all of
;; paredit but can do more ;; paredit but can do more

44
lisp/init-smerge.el Normal file
View File

@@ -0,0 +1,44 @@
;; -*- lexical-binding: nil; -*-
;; *** Smerge Config
;; smerge-mode is being issued during editing of conflicts from magit,
;; however, I hate its default prefix, but don't have any practical
;; prefixes left AND am using it far too rare to deserve its own
;; prefix. So just a hydra will do.
(when (fboundp 'defhydra)
(defhydra hydra-smerge (:exit nil)
"
^Smerge Mode^
^^--------------------------------------------------------------
_n_: next conflict _u_: keep upper _s_: swap
_p_: prev conflict _l_: keep lower _h_: highlight
_e_: Ediff _b_: keep base _r_: resolve
_q_: quit _RET_: keep hunk@point _R_: revert
^^--------------------------------------------------------------
Reach this hydra with <C-x m>
^^--------------------------------------------------------------
"
("n" smerge-next nil)
("p" smerge-prev nil)
("u" smerge-keep-upper nil)
("l" smerge-keep-lower nil)
("b" smerge-keep-base nil)
("RET" smerge-keep-current nil)
("h" smerge-refine nil)
("s" smerge-swap nil)
("r" smerge-resolve nil)
("R" undo-tree-undo nil)
("e" smerge-ediff nil :color blue)
("q" nil nil :color blue))
(global-set-key (kbd "C-x m") 'hydra-smerge/body)
(defalias 'merge 'hydra-smerge/body))
(provide 'init-smerge)
;;; init-smerge.el ends here

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Suggest Mode ;; *** Suggest Mode
;; [[https://github.com/Wilfred/suggest.el][suggest mode]] is a great ;; [[https://github.com/Wilfred/suggest.el][suggest mode]] is a great

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; Backup Config ;;; Backup Config
;; I save backup files in a central location below the init dir, that ;; I save backup files in a central location below the init dir, that

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Tabulated List Mode ;; *** Tabulated List Mode
;; built-in, used by many interactive major modes ;; built-in, used by many interactive major modes

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(message (format "DEBUG: default-text-scale installed: %s" (package-installed-p 'default-text-scale))) (message (format "DEBUG: default-text-scale installed: %s" (package-installed-p 'default-text-scale)))
(package-install 'default-text-scale) (package-install 'default-text-scale)

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; ** Text Manupilation ;; ** Text Manupilation
;; *** expand-region ;; *** expand-region

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; ** increase fontsize with ctrl-+ and ctrl-- ;;; ** increase fontsize with ctrl-+ and ctrl--
;; I use those bindings everywhere (firefox, terminal, etc), and in ;; I use those bindings everywhere (firefox, terminal, etc), and in

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** tramp mode ;; *** tramp mode
;; Edit remote files, one of the best things in emacs. I use it every day heavily. ;; Edit remote files, one of the best things in emacs. I use it every day heavily.

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; https://codeberg.org/meow_king/typst-ts-mode ;; https://codeberg.org/meow_king/typst-ts-mode

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;;; *** highlight todo keywords (such as FIXME) ;;; *** highlight todo keywords (such as FIXME)
;; Absolutely needed! ;; Absolutely needed!

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** web-mode (JS, HTML, CSS combined) ;; *** web-mode (JS, HTML, CSS combined)
;; Web development is shit. Tech involved is a mess, and in most cases ;; Web development is shit. Tech involved is a mess, and in most cases

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; NOTDONE ;; NOTDONE
;;; ** WINDOW management stuff ;;; ** WINDOW management stuff
;; *** resize windows by keyboard ;; *** resize windows by keyboard

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Eyebrowse Workspaces ;; *** Eyebrowse Workspaces
;; workspace configuration, like desktops. Seems to be a good implementation, w/o save though ;; workspace configuration, like desktops. Seems to be a good implementation, w/o save though

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Xmodmap Mode ;; *** Xmodmap Mode
;; the shortest mode ever, [[https://www.emacswiki.org/emacs/XModMapMode][via emacswiki]]. ;; the shortest mode ever, [[https://www.emacswiki.org/emacs/XModMapMode][via emacswiki]].

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
;; *** Yaml Mode ;; *** Yaml Mode
(use-package yaml-mode (use-package yaml-mode

View File

@@ -1,3 +1,4 @@
;; -*- lexical-binding: nil; -*-
(defun tvd-kill-ro-buffer() (defun tvd-kill-ro-buffer()
(interactive) (interactive)
(when buffer-read-only (when buffer-read-only