开发者

Emacs mode 1, 2 and t (what t stands for)?

For instance, global-linum-mode 1 enables line numbers global-linu开发者_如何学编程m-mode 0 disables line numbers, what global-linum-mode t would do? and I've seen another parameter: nil. What do they do?


t and nil in boolean context are the (Emacs) Lisp truth values. nil is false. Any non-nil value is considered to be true, but t is customarily used. Source.

As for global-linum-mode, any non-negative parameter will enable it, including t, "foo",... etcetera.

For such questions it is very useful to play in the scratch buffer with elisp: type your expression there and press C-j.


t is true, nil is false.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜