Avoid include warnings when compiling.
Also update the readme regarding Emacs; version 30 doesn't need any config.
This commit is contained in:
parent
a4251e5d21
commit
80a43cab08
3
Makefile
3
Makefile
@ -11,8 +11,9 @@ PREFIX ?= /usr/local
|
|||||||
BINDIR ?= $(PREFIX)/bin
|
BINDIR ?= $(PREFIX)/bin
|
||||||
|
|
||||||
OPTS=--add-package-path "./src/?.lua" --add-fennel-path "./src/?.fnl"
|
OPTS=--add-package-path "./src/?.lua" --add-fennel-path "./src/?.fnl"
|
||||||
|
OPTS+=--skip-include fennel.compiler
|
||||||
|
|
||||||
.PHONY: clean test install ci selfcheck
|
.PHONY: all clean test install ci selfcheck
|
||||||
|
|
||||||
all: $(EXE)
|
all: $(EXE)
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ If you are using vim+lspconfig, it is pretty simple:
|
|||||||
require('lspconfig').fennel_ls.setup()
|
require('lspconfig').fennel_ls.setup()
|
||||||
```
|
```
|
||||||
|
|
||||||
For Emacs, (eglot, built-in to 29+):
|
For Emacs 30+, eglot will use fennel-ls automatically. For older versions:
|
||||||
```lisp
|
```lisp
|
||||||
(with-eval-after-load 'eglot
|
(with-eval-after-load 'eglot
|
||||||
(add-to-list 'eglot-server-programs '(fennel-mode . ("fennel-ls"))))
|
(add-to-list 'eglot-server-programs '(fennel-mode . ("fennel-ls"))))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user