Skip to content

Commit

Permalink
Fix CI for Emacs 27
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed Dec 31, 2023
1 parent a822072 commit ec4615b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/radian-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
;; ensure that various things are indented correctly if they require
;; some setup for Emacs to know how to do the right thing.

;; Load libraries whose definitions we need to overwrite.
(require 'subr-x)

;; The indentation of `define-key' has for some reason changed in
;; Emacs 29 when it was deprecated in favor of `keymap-set'. Maybe
;; that is a bug and they will change it, but for now, force the
;; indentation to the backwards-compatible version.
(put #'define-key 'lisp-indent-function 'defun)

;; The indentation of `thread-first' changed from (indent 1) to
;; (indent 0) in Emacs 28. Use the later version.
(put #'thread-first 'lisp-indent-function 0)

0 comments on commit ec4615b

Please sign in to comment.