Мне не нравится, как plists с отступом в Elisp.Настроить выемку plisp elisp
;; current desired Python (for comparison)
;; '(a 1 '(a 1 {'a': 1,
;; b 2 b 2 'b': 2,
;; c 3) c 3) 'c': 3}
Пробовал на M-х Emacs-версии 24.3.1, побежал emacs -Q
, набрал PLIST и прессуют C-х ч C-M- \.
Это отступ имеет смысл, если это не список:
(mapcar (lambda (x) (x + 1))
'(1 2 3 4))
Как изменить форматирование настроек, так что только plists (или, если это невозможно, все приведенные списки) имеют нужный прямоугольные отступ, но отступ всего остального остается неизменным? Мне нужно, чтобы это было сохранено локально в файле .el
, так что, когда я редактирую этот файл, он имеет отступы по желанию, но это поведение не заканчивается нигде.
По этой причине и многие другие, я рекомендую использовать alists, а не plists. – Stefan