Emacsist RSS --- If never, make it ever: C-h C-h

Emacs Right Click Context menu

7476

这里 查看更多 Emacs 相关推荐文章最新 Emacs 圈的动态. 欢迎关注微信公众账号: Emacsist

This package is in development.

A customizable context menu, call it from right-click of mouse. You can also use the context menu from keyboard.

Demo

demo.gif

Install

Cask

(depends-on "right-click-context" :git "git@github.com:zonuexe/right-click-context.git")

Setup

Easy way (use minor-mode)

(right-click-context-mode 1)

;; If want to use context menu by keyboard
;(define-key right-click-context-mode-map (kbd "C-c :") 'right-click-context-menu)

Use keymap

If you do not need the minor-mode, you can add a command to global keymap.

(global-set-key (kbd "<mouse-3>") 'right-click-context-menu)

(bind-key "C-c <mouse-3>" 'right-click-context-menu)
(bind-key "C-c :" 'right-click-context-menu)

Hide righter

You will feel mode line is that it is complicated.

;; Use emoji
(setq right-click-context-mode-lighter "??")

;; hidden
(setq right-click-context-mode-lighter "")
原文出处: zonuexe
原文地址: https://github.com/zonuexe/right-click-context
原文时间: 2016-05-11 15:12
本文地址: http://emacsist.com/10870
整理时间: 2016-05-13 01:33

本文由 Hick 整理,转载请保留以上信息;
COPYLEFTThe articles on this site come from Internet, thanks to all the original authors.
      If anything about COPYRIGHT, or LEFT, please contact Emacsist at gmail dot com .