From sknaumov at gmail.com Fri Jul 27 14:01:17 2018 From: sknaumov at gmail.com (Sergey Naumov) Date: Fri, 27 Jul 2018 17:01:17 +0300 Subject: change default configuration Message-ID: Hi. I'm curious whether there is a way to change default configuration that is generated when user invokes mc for the first time? For example, I want "use_internal_edit" to be true by default instead of false for any new user. If there is a way to do it, then is it possible to just use lines that I want to change, not the whole configuration, say [Midnight-Commander] use_internal_edit=true Thanks, Sergey. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborodin at vmail.ru Fri Jul 27 16:27:55 2018 From: aborodin at vmail.ru (Andrew Borodin) Date: Fri, 27 Jul 2018 19:27:55 +0300 Subject: change default configuration In-Reply-To: References: Message-ID: On Fri, 27 Jul 2018 17:01:17 +0300 Sergey Naumov via mc-devel wrote: > I'm curious whether there is a way to change default configuration that is > generated when user invokes mc for the first time? > > For example, I want "use_internal_edit" to be true by default instead of > false for any new user. In vanilla mc the initial value of use_internal_edit is true. Some distros (Debian and some others) change this to false. > If there is a way to do it, then is it possible to just use lines that I > want to change, not the whole configuration, say > > [Midnight-Commander] > use_internal_edit=true Before first run, ~/.config/mc/ini doesn't exist. If ~/.config/mc/ini doesn't exist, /etc/mc/mc.ini is used. If /etc/mc/mc.ini doesn't exist, /usr/share/mc/mc.ini is used. You can create one of these files with required default settings set. Unfortunately, there is no info about /etc/mc/mc.ini in the man page. I'll fix that at this weekend. -- Andrew From oswald.buddenhagen at gmx.de Fri Jul 27 17:28:43 2018 From: oswald.buddenhagen at gmx.de (Oswald Buddenhagen) Date: Fri, 27 Jul 2018 19:28:43 +0200 Subject: change default configuration In-Reply-To: References: Message-ID: <20180727172843.GA16781@nubble.lan> On Fri, Jul 27, 2018 at 05:01:17PM +0300, Sergey Naumov via mc-devel wrote: > I'm curious whether there is a way to change default configuration > that is generated when user invokes mc for the first time? > according to the manual's FILES section, you can create $prefix/share/mc/mc.ini. fwiw, i always found that default setting rather surprising and counter-productive, too. the vim/emacs/etc. hardliners will find the way to launch their personal deity, err, preferred editor soon enough, while average joe (in as far as he uses mc at all) won't appreciate being dropped into vi by default ("how do i quit that crap?!" was also my first experience). From egmont at gmail.com Fri Jul 27 18:43:06 2018 From: egmont at gmail.com (Egmont Koblinger) Date: Fri, 27 Jul 2018 20:43:06 +0200 Subject: change default configuration In-Reply-To: <20180727172843.GA16781@nubble.lan> References: <20180727172843.GA16781@nubble.lan> Message-ID: On Fri, Jul 27, 2018 at 7:28 PM, Oswald Buddenhagen < oswald.buddenhagen at gmx.de> wrote: > > fwiw, i always found that default setting rather surprising and > counter-productive, too. the vim/emacs/etc. hardliners will find the way > to launch their personal deity, err, preferred editor soon enough, while > average joe (in as far as he uses mc at all) won't appreciate being > dropped into vi by default ("how do i quit that crap?!" was also my > first experience). > I fully agree, and recommend to change the default to mcedit. cheers, egmont -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrmazda at earthlink.net Fri Jul 27 19:06:42 2018 From: mrmazda at earthlink.net (Felix Miata) Date: Fri, 27 Jul 2018 15:06:42 -0400 Subject: change default configuration In-Reply-To: References: <20180727172843.GA16781@nubble.lan> Message-ID: Egmont Koblinger composed on 2018-07-27 20:43 (UTC+0200): > Oswald Buddenhagen wrote: >> fwiw, i always found that default setting rather surprising and >> counter-productive, too. the vim/emacs/etc. hardliners will find the way >> to launch their personal deity, err, preferred editor soon enough, while >> average joe (in as far as he uses mc at all) won't appreciate being >> dropped into vi by default ("how do i quit that crap?!" was also my >> first experience). +++ > I fully agree, and recommend to change the default to mcedit. AFAICT, external is a misfeature of .deb mc packages, one of the most annoying things about using Knoppix (pause after run off in mc being the other). Fedora and openSUSE rpms AFAICR are always mcedit. -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ From yury at shurup.com Fri Jul 27 20:29:28 2018 From: yury at shurup.com (Yury V. Zaytsev) Date: Fri, 27 Jul 2018 22:29:28 +0200 Subject: change default configuration In-Reply-To: References: <20180727172843.GA16781@nubble.lan> Message-ID: I fought against it for quite some time, but, in the end, this was not a fight that I could win. Debian Policy says it should be this way, thus so it is, and so it will be :-/ Sent from my iPad > On 27. Jul 2018, at 21:06, Felix Miata via mc-devel wrote: > > Egmont Koblinger composed on 2018-07-27 20:43 (UTC+0200): > >> Oswald Buddenhagen wrote: > >>> fwiw, i always found that default setting rather surprising and >>> counter-productive, too. the vim/emacs/etc. hardliners will find the way >>> to launch their personal deity, err, preferred editor soon enough, while >>> average joe (in as far as he uses mc at all) won't appreciate being >>> dropped into vi by default ("how do i quit that crap?!" was also my >>> first experience). > > +++ > >> I fully agree, and recommend to change the default to mcedit. > > AFAICT, external is a misfeature of .deb mc packages, one of the most annoying > things about using Knoppix (pause after run off in mc being the other). Fedora > and openSUSE rpms AFAICR are always mcedit. > -- > "Wisdom is supreme; therefore get wisdom. Whatever else you > get, get wisdom." Proverbs 4:7 (New Living Translation) > > Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! > > Felix Miata *** http://fm.no-ip.com/ > _______________________________________________ > mc-devel mailing list > https://mail.gnome.org/mailman/listinfo/mc-devel