我试图通过将(:lt.objs.editor/tab-settings false 2 2)
放入我的user.behaviors的editor
部分来覆盖它,但它不会改变任何内容。每次我按下输入我的html文件的<head>
标签,我得到4个空格缩进。我现在用谷歌搜索了大约半个小时。你知道我做错了什么吗?
我在OS X版本上。这是我的整个user.behaviors:
{:+ {
;; The app tag is kind of like global scope. You assign behaviors that affect
;; all of Light Table here
:app [(:lt.objs.style/set-skin "dark")]
;; The editor tag is applied to all editors
:editor [:lt.objs.editor/no-wrap
(:lt.objs.style/set-theme "default")
(:lt.plugins.vim/activate-vim)
(:lt.objs.editor/tab-settings false 2 2)]
;; Here we can add behaviors to just clojure editors
:editor.clojure [(:lt.plugins.clojure/print-length 1000)]}
;; You can use the subtract key to remove behavior that may get added by
;; another diff
:- {:app []}}
答案 0 :(得分:2)
我从Chris Ganger得到答案:
将其设置为editor.html
所以正确的方法是
:editor.html [(:lt.objs.editor/tab-settings false 2 2)]
编辑:对于较新版本的Lighttable,正确的语法是
[:editor.html :lt.objs.editor/tab-settings false 2 2]
答案 1 :(得分:1)
截至2015年4月,接受的答案对我没有用,但LightTable FAQ的咒语立即生效:
;; 2 2 is tab size in spaces and spaces per indent
[:editor :lt.objs.editor/tab-settings false 2 2]
OS X 10.10.3上的LightTable 0.7.2(二进制0.8.4)。