rougier / nano-emacs

GNU Emacs / N Λ N O - Emacs made simple
GNU General Public License v3.0
2.52k stars 195 forks source link

fix mode-line-format as it expects a list #31

Closed dangom closed 3 years ago

dangom commented 3 years ago

Even though string works, it breaks modes such as treemacs.

rougier commented 3 years ago

Didn't know that. Why does it work with a string then?

dangom commented 3 years ago

That's a good question. But I noticed the issue when I opened Treemacs and it complained of a wrong argument type. I suppose that's because Treemacs attempts to add some info to the modeline by modifying a list, and then fails because nano-emacs sets it to a string. Note that the default value of the formatting is indeed a list, so I just keep it that way.