문제

I am writing a major-mode in emacs for a DSL I've created. I'm inheriting from fundamental-mode, which tabs out way far (6 tab stops, I think).

I'd like to be able to define:

(setq mydsl-tab-width 4) 

and have that work.

도움이 되었습니까?

해결책

Not quite understanding the question...

In your major mode, I presume you're making some settings. Perhaps one of those could be:

(setq tab-width mydsl-tab-width)  ;# use the tab width specified by your variable

Could you elaborate on how mydsl-tab-width is currently used? Emacs surely doesn't know about it - tab-width is the variable to use/set.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top