Programming

Ms Windows Global Context Menu

steloflute 2016. 4. 5. 23:30

https://www.emacswiki.org/emacs/MsWindowsGlobalContextMenu


Starting Emacs From Global Context Menu

Here is a simple but useful way to access Emacs. It adds the option to open a file in Emacs to your global context menu (i.e., right clicking on a file). This runs a new Emacs instance for each file. (Note: not the “Open With” submenu, but the top level context menu.)

This has been tested under WinXP.

Create a file named global_context_emacs.reg:

REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]

[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="&GNU Emacs"
# The above value appears in the global context menu, 
# i.e., when you right click on a file.
# (The '&' makes the next character a shortcut.)
"Icon"="C:\\Program Files\\Emacs\\bin\\emacs.exe,0"
# The above uses the icon of the Emacs exe for the context
# and should match the path used for the command below.
# The ,0 selects the main icon.

[HKEY_CLASSES_ROOT\*\shell\openwemacs\command]
@="C:\\Program Files\\Emacs\\bin\\runemacs.exe \"%1\""
# The above has to point to where you install Emacs

Obviously, the command in the last line here has to point to where you install Emacs. For example, I think the distribution zip file normally unpacks to a folder named “emacs22” or something like that. I renamed this to “Emacs”.

Double click this file to load its entries into the registry. You can use regedit to check if they are there, or remove them later.

'Programming' 카테고리의 다른 글

(Java) 겁나 간단히 OOME 찾기 (메모리 분석하기)  (0) 2016.10.11
오라클 JDBC 테스트  (0) 2016.05.11
OpenSSL AES 암복호화  (0) 2016.04.04
보안_ ECB, CBC, CFB, OFB, CTR.  (0) 2016.03.31
openssl AES 모드 : ECB,CBC,CFB...  (0) 2016.03.31