From 90fd8ecc39cb279ee27e0db2f637f60c7b80af07 Mon Sep 17 00:00:00 2001 From: Ruijie Yu Date: Fri, 14 Apr 2023 16:04:27 +0800 Subject: [PATCH] * publish.sh: fixed major mode; converted load into require Major mode was erronously set to shell-script-mode because of the empty line. Converted the `load' into `require' because it allows someone working on a local repo to `eval-buffer' successfully, given that the individual installs these dependencies from GNU/NonGNU Elpa. Previously, due to the hard-coded path, `eval-buffer' would not be successful. --- publish.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/publish.sh b/publish.sh index f756ff6..b3911d2 100755 --- a/publish.sh +++ b/publish.sh @@ -1,13 +1,13 @@ #!/usr/bin/env sh - -":"; exec emacs --quick --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*- +":" ; exec emacs --quick --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*- (add-to-list 'load-path "~/org-mode/lisp/") (add-to-list 'load-path "~/org-contrib/lisp/") (require 'ox-html) (require 'ox-extra) (ox-extras-activate '(ignore-headlines)) -(load "/usr/share/emacs/site-lisp/elpa-src/htmlize-1.56/htmlize.el") +(add-to-list 'load-path "/usr/share/emacs/site-lisp/elpa-src/htmlize-1.56") +(require 'htmlize) (setq make-backup-files nil debug-on-error t) -- 2.40.0