Skip to content

Commit

Permalink
Work around recent MELPA -pkg.el change
Browse files Browse the repository at this point in the history
MELPA c. 2024-09-29 started to add a header line in each -pkg.el file:

  ";; -*- mode: lisp-data; no-byte-compile: t; lexical-binding: nil -*-\n"

This causes package-install to barf on older Emacs where
lisp-data-mode is undefined.

Mitigate by defalias-ing lisp-data-mode to normal-mode.
  • Loading branch information
greghendershott committed Sep 29, 2024
1 parent 35f3817 commit c1b8535
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ melpa-url := https://melpa.org/packages/
deps:
$(batch-emacs) \
--eval '(add-to-list (quote package-archives) (cons "melpa" "$(melpa-url)"))' \
--eval '(unless (fboundp (quote lisp-data-mode)) (defalias (quote lisp-data-mode) (quote normal-mode)))' \
--eval '(package-refresh-contents)' \
--eval '(package-install (quote faceup))' \
--eval '(package-install (quote paredit))'
Expand Down

0 comments on commit c1b8535

Please sign in to comment.