|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I recently changed my default editor program, by using: update-alternatives --config editor and I selected emacs-snapshot. However, whenever some program calls "editor", I'd like emacs-snapshot to be called with the -nw option, as I wouldn't want to be restricted if I'm at a terminal. I can't find info on how to do this in the docs. I'd appreciate any advice on this. Cheers, -- Seb -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Seb writes:
> I recently changed my default editor program, by using: > update-alternatives --config editor > and I selected emacs-snapshot. However, whenever some program calls > "editor", I'd like emacs-snapshot to be called with the -nw option, as I > wouldn't want to be restricted if I'm at a terminal. I can't find info on > how to do this in the docs. I'd appreciate any advice on this. A possibility is to create a shell script which calls emacs with the nw flag, e.g.: --8<---------------cut here---------------start------------->8--- #!/bin/sh emacs -nw --8<---------------cut here---------------end--------------->8--- Then put the location of the script instead of the location of emacs executable in the relevant line of the /var/lib/dpkg/alternatives/editor file. HTH, -- --Jhair -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
![]() |
| Outils de la discussion | |
|
|