Skip to content

Commit

Permalink
add local load-path to cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
zzkt committed Aug 17, 2022
1 parent 53d3959 commit 5a5ff2b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;; setting for elisp mode and elisp linter
((emacs-lisp-mode . ((fill-column . 80)
(indent-tabs-mode . nil)
(elisp-lint-indent-specs . ((describe . 1)
(it . 1))))))
5 changes: 5 additions & 0 deletions el/.dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;; setting for elisp mode and elisp linter
((emacs-lisp-mode . ((fill-column . 80)
(indent-tabs-mode . nil)
(elisp-lint-indent-specs . ((describe . 1)
(it . 1))))))
8 changes: 8 additions & 0 deletions el/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ mark_as_advanced(SC_EL_BYTECOMPILE)
file(GLOB scel_sources
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.el)

file(GLOB_RECURSE local-load-path
LIST_DIRECTORIES true
"~/.emacs.d/site-lisp/*"
"~/.emacs.d/elpa/*")

set(all_scel_sources ${scel_sources} sclang-vars.el)

set(PKG_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/SuperCollider)

configure_file(sclang-vars.el.in
Expand All @@ -27,6 +34,7 @@ if (SC_EL_BYTECOMPILE)
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${el}c
COMMAND ${EMACS_EXECUTABLE} -batch
-L ${CMAKE_CURRENT_BINARY_DIR}
-L ${local-load-path}
-f batch-byte-compile
${CMAKE_CURRENT_BINARY_DIR}/${el}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el}
Expand Down
2 changes: 1 addition & 1 deletion el/sclang-help.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; sclang-help.el --- IDE for working with SuperCollider -*- coding: utf-8;
;;; sclang-help.el --- IDE for working with SuperCollider -*- coding: utf-8; -*-
;;
;; Copyright 2003 stefan kersten <[email protected]>

Expand Down

0 comments on commit 5a5ff2b

Please sign in to comment.