加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

有没有办法在Windows上获得超过Meta和Ctrl的方法?长时间Emacs用

发布时间:2020-12-13 19:26:57 所属栏目:Windows 来源:网络整理
导读:我在 Linux上使用了多年的Emacs,而且我已经在Hyper和Super下面提供了很多个人有用的键盘绑定.现在我在Windows上使用Emacs,并且缺少这些额外的键盘. 有没有办法在Windows中获得除Ctrl和Meta之外的修饰键? this google-groups thread:中提到了一些设置 ; sett
我在 Linux上使用了多年的Emacs,而且我已经在Hyper和Super下面提供了很多个人有用的键盘绑定.现在我在Windows上使用Emacs,并且缺少这些额外的键盘.

有没有办法在Windows中获得除Ctrl和Meta之外的修饰键?

this google-groups thread:中提到了一些设置
; setting the PC keyboard's various keys to Super or Hyper
(setq w32-pass-lwindow-to-system nil
      w32-pass-rwindow-to-system nil
      w32-pass-apps-to-system nil
      w32-lwindow-modifier 'super ;; Left Windows key
      w32-rwindow-modifier 'super ;; Right Windows key
      w32-apps-modifier 'hyper) ;; Menu key

更新:所以,我实际上尝试了我自己的Win32 emacs设置中的上述代码. Lo,它的作品!尴尬的演示如下:

(defun super-test ()
  (interactive)
  (message "Super"))

(defun hyper-test ()
  (interactive)
  (message "Hyper"))

(global-set-key [(super h)] 'super-test)
(global-set-key [(hyper h)] 'hyper-test)

除非我做了别的东西,这些工作本身;我在LENNART-69DE564(补丁)上运行2008-08-19的GNU Emacs 23.0.60.1(i386-mingw-nt5.1.2600)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读