Skip to content

Commit

Permalink
fix(emacs): noweb load-path and direnv-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yurrriq committed Jan 13, 2024
1 parent 1127e03 commit 1303248
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.15.0
8.15.1
17 changes: 15 additions & 2 deletions config/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Null prefix argument turns off the mode."
(use-package better-defaults)

(use-package direnv
:ensure t)
:ensure t
:config
(direnv-mode))

(use-package dockerfile-mode)

Expand Down Expand Up @@ -151,8 +153,19 @@ Null prefix argument turns off the mode."
(use-package multiple-cursors
:demand
:config (global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines))
(eval-and-compile
(defun yurrriq/noweb-load-path ()
(file-name-as-directory
(expand-file-name "site-lisp"
(expand-file-name "emacs"
(expand-file-name "share"
(file-name-directory
(directory-file-name
(file-name-directory
(executable-find "noweb"))))))))))

(use-package noweb-mode
:load-path "/run/current-system/sw/share/emacs/site-lisp"
:load-path (lambda () (list (yurrriq/noweb-load-path)))
:mode ("\\.nw\\'")
:demand)
(use-package nyan-mode
Expand Down
17 changes: 15 additions & 2 deletions src/config/emacs/init.nw
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ Null prefix argument turns off the mode."
(use-package better-defaults)

(use-package direnv
:ensure t)
:ensure t
:config
(direnv-mode))

(use-package dockerfile-mode)

Expand Down Expand Up @@ -252,8 +254,19 @@ pretty ligatures.
@

<<config/emacs/init.el>>=
(eval-and-compile
(defun yurrriq/noweb-load-path ()
(file-name-as-directory
(expand-file-name "site-lisp"
(expand-file-name "emacs"
(expand-file-name "share"
(file-name-directory
(directory-file-name
(file-name-directory
(executable-find "noweb"))))))))))

(use-package noweb-mode
:load-path "/run/current-system/sw/share/emacs/site-lisp"
:load-path (lambda () (list (yurrriq/noweb-load-path)))
:mode ("\\.nw\\'")
:demand)
@
Expand Down

0 comments on commit 1303248

Please sign in to comment.