mirror of
https://github.com/open-goal/jak-project
synced 2026-06-25 10:12:14 -04:00
fab73cab75
* docs: move markdown documentation to be caught by docsify * docs: Initial spike of project status / doc portal * docs: Add searchbar to docsify page * docs: Remove the package-lock.json file, not critical for us * docs: Fix search plugin link * docs: Fix search results colors * docs: Remove the navbar, now redundant.
25 lines
1.0 KiB
EmacsLisp
25 lines
1.0 KiB
EmacsLisp
;; make gc files use lisp-mode
|
|
(add-to-list 'auto-mode-alist '("\\.gc\\'" . lisp-mode))
|
|
;; run setup-goal when we enter lisp mode
|
|
(add-hook 'lisp-mode-hook 'setup-goal)
|
|
|
|
(defun setup-goal ()
|
|
;; if we are in a gc file, change indent settings for GOAL
|
|
(when (and (stringp buffer-file-name)
|
|
(string-match "\\.gc\\'" buffer-file-name))
|
|
(put 'with-pp 'common-lisp-indent-function 0)
|
|
(put 'while 'common-lisp-indent-function 1)
|
|
(put 'rlet 'common-lisp-indent-function 1)
|
|
(put 'until 'common-lisp-indent-function 1)
|
|
(put 'countdown 'common-lisp-indent-function 1)
|
|
(put 'defun-debug 'common-lisp-indent-function 2)
|
|
(put 'defenum 'common-lisp-indent-function 2)
|
|
|
|
;; indent for common lisp, this makes if's look nicer
|
|
(custom-set-variables '(lisp-indent-function 'common-lisp-indent-function))
|
|
(autoload 'common-lisp-indent-function "cl-indent" "Common Lisp indent.")
|
|
;; use spaces, not tabs
|
|
(setq-default indent-tabs-mode nil)
|
|
)
|
|
)
|