如何使用全局的Emacs keybinding (已解决)
Tofloor
poster avatar
chenleo
deepin
2014-09-19 09:27
Author
在用Deepin 2013的时候,可以通过Gnome-tweak-tool设置系统全局emacs的keybinding,但是在2014中用相同的工具设置不了。不知道Deepin公司内部人是怎么用的。
Reply Favorite View the author
All Replies
ArthurDeepin
deepin
2014-09-19 17:01
#1
是指的emacs的自定义热键吗?在家目录的.emacs文件中加入几句初始化的命令就行,需要重启emacs
比如:
(global-set-key "\M-p" 'next-buffer)
(global-set-key "\M-n" 'previous-buffer)
(global-set-key [C-tab] 'set-mark-command)
下一个buffer、上一个buffer、标记(这一个是因为和系统的输入法切换冲突所以才改的 ;) )
Reply View the author
chenleo
deepin
2014-09-19 18:51
#2
不是,是系统在各种可以编辑的地方,都可以使用C-a, C-e, C-f, C-b来编辑,我在Deepin 2013中这么设置的,gedit的键位也变成了这样的,而且已经喜欢这种各处都是Emacs编辑习惯的方式了。
Reply View the author
ArthurDeepin
deepin
2014-09-19 21:07
#3
改的好彻底~,也许可以试试gconf-editor这个工具
Reply View the author
chenleo
deepin
2014-09-20 06:38
#4
改的好彻底~,也许可以试试gconf-editor这个工具
gnome-tweak-tool就是修改那个文件,感觉DDE2没有使用gtk的库,所以修改gnome对于DDE无效。
Reply View the author
chenleo
deepin
2014-09-21 05:21
#5
使用Autokey进行全局的绑定就好了。但是又出现的问题就是对于gnome窗口使用Alt+字母无法使用,但是对于用KDE的窗口,没有这个Alt+的问题。
Reply View the author
chenleo
deepin
2014-09-21 05:24
#6
Reply View the author
ArthurDeepin
deepin
2014-09-21 05:48
#7
围观~
Reply View the author