mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Add Emacs client as text editor.
Courtesy of Jochen Trumpf, thanks! svn path=/trunk/KDE/kdegraphics/okular/; revision=882065
This commit is contained in:
parent
008fce9421
commit
065ab69e8b
|
@ -29,6 +29,7 @@ DlgEditor::DlgEditor( QWidget * parent )
|
|||
m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Kate" ), 1 );
|
||||
m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Kile" ), 2 );
|
||||
m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "SciTE" ), 3 );
|
||||
m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Emacs client" ), 4 );
|
||||
|
||||
m_dlg->kcfg_ExternalEditorCommand->setWhatsThis( i18nc( "@info:whatsthis",
|
||||
"<qt>Set the command of a custom text editor to be launched.<br />\n"
|
||||
|
|
|
@ -167,6 +167,7 @@
|
|||
<choice name="Kate" />
|
||||
<choice name="Kile" />
|
||||
<choice name="Scite" />
|
||||
<choice name="Emacsclient" />
|
||||
</choices>
|
||||
</entry>
|
||||
<entry key="ExternalEditorCommand" type="String">
|
||||
|
|
|
@ -27,6 +27,8 @@ static inline QHash< int, QString > buildEditorsMap()
|
|||
QString::fromLatin1( "kile --line %l" ) );
|
||||
editors.insert( Settings::EnumExternalEditor::Scite,
|
||||
QString::fromLatin1( "scite %f \"-goto:%l,%c\"" ) );
|
||||
editors.insert( Settings::EnumExternalEditor::Emacsclient,
|
||||
QString::fromLatin1( "emacsclient -a emacs --no-wait +%l %f" ) );
|
||||
return editors;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue