2015-11-21 11 views
1

這可能很簡單,但我已經試了幾天而沒有成功。我呼籲標籤:急:,我可以通過訪問:在emacs org-mode上爲標籤搜索設置新的快捷方式

C-c/m urgent 

的問題是,我怎麼能創建得到它,比如,F9做一個快捷方式?

+1

怎麼樣? '(defun hello-world()「My doc-string。」(interactive)(org-tags-view nil「urgent」))'and'(global-set-key [f9]'hello-world)'**或者**'(define-key global-map [f9]'hello-world)' – lawlist

+0

@lawlist這正是我所需要的,非常感謝。注意自我:需要學習elisp –

回答

1
(defun hello-world() 
"My doc-string." 
(interactive) 
    (org-tags-view nil "urgent")) 

(global-set-key [f9] 'hello-world) 
;; or, use the following form instead of the one immediately above: 
;; (define-key global-map [f9] 'hello-world)