Wolf
unread,Oct 11, 2022, 4:58:02 AM10/11/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@vim.org, Wolf
Currently if indents like:
(if #t
a
b)
That seems to be bit unusual, so this commit drops if from the default
lw, leading to expected indentation of:
(if #t
a
b)
Old behavior can be restored by putting if back into lw.
---
This can be changed in .vimrc, so arguable not a necessary change. But
as a newcomer to lisp it took me a while to figure out why vim formats
it differently compared to literally any textbook or tutorial I've
managed to found.
src/option.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/option.h b/src/option.h
index ebbf94b06..2eae89db4 100644
--- a/src/option.h
+++ b/src/option.h
@@ -376,7 +376,7 @@ typedef enum {
#define CULOPT_SCRLINE 0x02 // Highlight screen line
#define CULOPT_NBR 0x04 // Highlight Number column
-#define LISPWORD_VALUE "defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object"
+#define LISPWORD_VALUE "defun,define,defmacro,set!,lambda,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object"
/*
* The following are actual variables for the options
--
2.36.2