V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
arlicle
V2EX  ›  Linux

能否让Linux桌面系统下也具有Mac一样的编辑快捷键?

  •  
  •   arlicle ·
    arlicle · 2012-11-16 09:52:56 +08:00 · 3505 次点击
    这是一个创建于 4178 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如ctrl + a, 光标跳到行首,
    ctrl + e, 光标跳到行尾,
    ctrl + n, 光标跳到下一行这样 ?

    以前一种用Linux ,只有在vi 或者emacs下才能体验这种快乐,后来买了mac,发现编辑真爽,到处都可以用这样的快捷键,前几天mac固体硬盘坏了,寄回去保修了,又用回Ubuntu ,各种不习惯,能否在Linux 下支持这些快捷操作呢?
    4 条回复    1970-01-01 08:00:00 +08:00
    binux
        1
    binux  
       2012-11-16 09:57:36 +08:00
    我喜欢用home,end
    reducm
        2
    reducm  
       2012-11-16 10:18:46 +08:00
    12.04之前的设法
    置emacs系统按键绑定
    gconf by running gconf-editor, and chang­ing the /desktop/gnome/interface/gtk_key_theme key to Emacs.

    #ubuntu 12.04 unity设置方法:
    gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"

    ctrl+a没了全选之后,使用ctrl+/
    在~/.emacs.el 里面加入
    (global-set-key [?\\C-/] 'mark-whole-buffer)
    SAGAN
        3
    SAGAN  
       2012-11-16 10:26:07 +08:00
    terminal默认就是emacs模式。Firefox安装vimperator后所有输出框也支持。其它地方好像也用不着这个。
    arlicle
        4
    arlicle  
    OP
       2012-11-16 11:19:25 +08:00
    @SAGAN 我的意思是和Mac 一样,全局支持啊! 而不是某几个软件支持而已。

    @reducm 我试一试,非常感谢;)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4604 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.