2013-10-15 21 views
1

在Centos 5.5中,每次双击文件浏览器中名为“* .pl”的文件时,它会打开一个新的emacs编辑器实例。如何修改Centos 5.5默认打开命令

我想让Emacs以单一实例的方式运行,所以我需要将打开的命令修改为“emacsclient%f”,但我不知道在哪里以及如何修改配置。

做到这一点

回答

1

最简单方法是:

 
1. Find a .pl file on your desktop or in the File Browser (nautilus) 
2. Right click it, select Properties 
3. Pick "Open With" tab 
4. If you don't see emacsclient, press the add button 
    a. Can check the list in Add Application dialog for emacsclient 
     I) If absent, click Use a custom command and browse or enter the path 
     to the emacsclient executable (mine is at /usr/local/bin/emacsclient). 
    b. Select emacsclient in the list 
    c. Press the Add button 
5. Make sure the radiobutton is selected for emacsclient in the "Open With" 
    dialog 
6. Press the close button.