PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > setting editor options with update-alternatives
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

setting editor options with update-alternatives

Réponse
 
LinkBack Outils de la discussion
Vieux 19/01/2007, 22h30   #1
Seb
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut setting editor options with update-alternatives

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
  Réponse avec citation
Vieux 21/01/2007, 02h30   #2
Jhair Tocancipa Triana
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: setting editor options with update-alternatives

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h13.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,06941 seconds with 10 queries