Re: Switch between custom layouts
On Feb 21, 2017 18:44, "Mooffie"wrote: The "Snapshots"[1] module of mc^2 lets you do this (and much more). mc^2? Lua? Wow, how did I miss this one? Looks like I have some homework now. Thanks! Toby ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Can't compile mc 2.8.18 on os x sierra
On Tue, 21 Feb 2017, Russell Urquhart wrote: Sorry this should have been 4.8.18. Try harder, it's actually there ;-) It would help if you explained where did you get the archive from and how did you unpack it, but, if I were you, I'd simply installed it from homebrew instead, since you're obviously not very comfortable with building stuff from source on macOS. -- Sincerely yours, Yury V. Zaytsev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Local-to-dir mcedit prefs or quick profiles?
On 2/20/17, wwpwrote: > I'm using mcedit to edit sources in many projects, some of them have > coding conventions that require [...] and some require [...] > > What feature or best practice would you suggest in order to quickly > switch mcedit settings (general editor options) according to the file > location? You can use mc^2 with a simple snippet like this: ui.Editbox.bind("<>", function(edt) if edt.filename and edt.filename:find "/projects/lambda/" then ui.Editbox.options.tab_size = 4 ui.Editbox.options.expand_tabs = true else ui.Editbox.options.tab_size = 8 ui.Editbox.options.expand_tabs = false end end) (For documentation, see [1]) (The 'else' case is needed because in MC the editor options are global, not local to each edit buffer.) mc^2 also comes with a modeline module (if you decide to use it just remember to require() it before the snippet above so it doesn't overwrite your settings). [1] http://www.typo.co.il/~mooffie/mc-lua/docs/html/classes/ui.Editbox.html#ui.Editbox.options ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc