1. 程式人生 > >Add emacs key bindings to Microsoft Word on OSX platform

Add emacs key bindings to Microsoft Word on OSX platform

Emacs users get addicted to the standard key bindings (which are also available in Cocoa apps). Microsoft Word doesn’t support these by default, but you can add them through customization. Here are the ones I find most useful:
StartOfLine: Control-A
EndOfLine: Control-E
LineUp: Control-P
LineDown: Control-N
CharLeft: Control-B
CharRight: Control-F
To set these up in Word, go to Tools » Customize » Customize Keyboard. From the Categories panel, choose All commands. Find each of the entries in the above list, select the Press new shortcut key box for each, then type the shortcut as shown above and click Assign. (Word will tell you if any of the shortcuts are currently assigned to other commands.)

The icing on the cake is to get Control-K working. You can do this with a macro. Go to Tools » Macro » Macros. Set the macro name to CtrlK, then click Create. When the macro window appears, add the following lines just before the End Sub line:
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Cut
Hit the W icon on the toolbar to save the macro and go back to Word. Now go back to the Tools » Customize » Customize Keyboard window, choose Macros from the Categories pane, and assign your new macro to Control-K.
當然C-d刪除當前字元的部分也能通過錄制巨集來操作

相關推薦

Add emacs key bindings to Microsoft Word on OSX platform

Emacs users get addicted to the standard key bindings (which are also available in Cocoa apps). Microsoft Word doesn’t support thes

How do I add a Foreign Key Field to a ModelForm in Django?

What I would like to do is to display a single form that lets the user: Enter a document title (from Document model

An Open Letter to Microsoft: Don’t Bid on the US Military’s Project JEDI

The authenticity of the following anonymous op-ed has been verified by Medium’s editorial staff.We joined Microsoft to create a positive impact on people a

Google Drive converts HTML pages to Word on download

I have just discovered this today and it is absolutely annoying. I uploaded a project folder to Google Drive which contained css, js and an index.html file

git 對 Microsoft Word 進行版本控制

dcl code 版本控制系統 documents custom ec2 adobe pen you   昨天中國高校發生了一件駭人聽聞的事情,聽說不少高校的校園網用戶連接校園網被勒索病毒給黑了,重要文件全部被加密,必須要支付贖金才能解密,具體新聞可以參見:http://w

wamp不能使用phpmyadmin,提示“You don't have permission to access /phpmyadmin/ on this server.”

you 提示 yml override cnblogs option rri dmi multiview 當你安裝完成wamp後,打開localhost或ip時發現已經可以運行了 但想使用phpmyadmin時,發現提示如下內容: You don‘t have permi

Microsoft Word 2007 向程序發送命令時出現問題解決方法

wid 刪除用戶 文件路徑 .html eight 問題 地址 重新 jin 最近在打開Word文檔時總是出現“向程序發送命令時出現問題”對話框,而且不確定性,關閉重新打開有時沒事了有時還不行, 很讓人頭疼,經過嘗試,把問題解決了 1、問題截圖如下: 2、解決方法 1)方

【Python】selenium調用IE11瀏覽器,報錯“找不到元素”NoSuchWindowException: Message:Unable to find element on closed window

conn ont csdn creates logs 註冊 target get 意思 當編寫自動化腳本,定位瀏覽器元素時,報如下錯誤: 代碼: >>> # coding=utf-8 >>> from selenium import w

“You don't have permission to access /phpmyadmin/ on this server.”

link iss order mission access acc tor 3.4 nbsp <Directory "I:/1/wamp/apps/phpmyadmin3.4.10.1/"> Options Indexes FollowSymLinks M

How to install MySQL on CentOS

ica temporary 1.2 number list details table tcp ets 1)chekc centos中是否安裝了MySQL [[email protected]/* */ MySQL]# rpm -qa | grep maria

[Err] 1215 - Cannot add foreign key constraint

指向 _id 主鍵 int const tab 外鍵 添加 con 添加外鍵:在A表中添加外鍵fk_A_B_1,將B表中的 user_id 指向A表的 主鍵 user_id。 要求: (1)user_id是A表的主鍵且在B表中對user_id添加索引約束,即key user

How to center body on a page?

however round ppr one man mil ati roman time ?【提問】 I‘m trying to center the body element on my HTML page. Basically, in the CSS I

ERROR 1215 (HY000): Cannot add foreign key constraint

mod alter hiberna structure 無意中 jsb ron b2c har MySQL中在為一個varchar類型數據列添加外鍵時,會發生上面所示的錯誤,這裏我google了一下,感覺它們碰到的問題跟我這個說的有點不相幹,嘗試了多種方式後來才發現是:主

mysql鏈接錯誤:2003 can't connect to mysql server on 10038

option tcp/ip connect ons default 文件 port utf tcp 出現這個錯誤原因是端口號不是3306。 打開D:\Program Files\MySQL\MySQL Server 5.5 \my.ini文件,當然還有其他的.ini的文件

mysql ERROR 1215 (HY000): Cannot add foreign key constraint

add foreign 裏的 查看 image alt char 了解 can ERROR 1215 (HY000): Cannot add foreign key constraint 最近在建表時遇到了這個錯誤,然後找了下找到了解決辦法,記錄下: 本來是要建兩張表:

Microsoft Word寫博客

ges col div 9.png 技術分享 colspan .cn log es2017 可以用Microsoft Word寫博客。在賬號設置過程中需要填寫發布博客的URL: 博客平臺發布博客的URL網易http://os.blog.163.com/wordCSDNhtt

How To Install Nginx on CentOS 7(轉)

mark amp light to do repos title config fin lob How To Install Nginx on CentOS 7 PostedJuly 22, 2014 427.4kviews NGINX CENTOS About Ng

ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.33.10' (111) 解決方法

working username 127.0.0.1 sans per 註釋 bsp 用戶 host 谷歌了一下之後,原來是在mysql的my.cnf中有下面一段代碼: # Instead of skip-networking the default is now to

Microsoft Word 文檔 中粘貼代碼實現語法高亮的方法

文檔 clas com mage board 分享 實現 pex nbsp 1.下載notepad++。 2.將代碼粘貼進notepad++,或者直接用notepad++打開。 3.點擊頂欄 ===> 插件 ===> NppExport ===> c

(轉)如何優雅的在 Microsoft word中插入代碼

簡單 需要 alt str class http 檢查 復制 語言 背景:最近項目需要自己編寫文檔,在文檔中需要插入部分代碼,記錄下這個方法。 一、工具 方法1.打開這個網頁PlanetB; 方法2.或者谷歌搜索syntax highlight code in