2012-04-14 5 views

答えて

30

このコマンドはスニペットとキー

m-x yas/describe-tables 
+0

この機能は存在しません。 – Reactormonk

+1

@あなたのyasパッケージを更新してください。https://github.com/capitaomorte/yasnippet/downloads – kindahero

5

M-x yas/insert-snippetをお探しですか?使用可能なすべてのスニペットが一覧表示され、挿入するスニペットを1つ選択できます。

8

yas/describe-tablesを示しているがyasnippet.el.

yas-describe-tablesの別名である(ヤス/記述-テーブル&オプションを選択)

この関数はyasnippetため廃止され0.8;

yas-describe-tablesを代わりに使用してください。

各表のスニペットを表示します。

1
(defvar lawlist-context-menu-map 
    (let ((map (make-sparse-keymap "Context Menu"))) 
    (define-key map [help-for-help] (cons "Help" 'help-for-help)) 
    (define-key map [seperator-two] '(menu-item "--")) 
    (define-key map [my-menu] (cons "LAWLIST" (make-sparse-keymap "My Menu"))) 
    (define-key map [my-menu 01] (cons "Next Line" 'next-line)) 
    (define-key map [my-menu 02] (cons "Previous Line" 'previous-line)) 
    (define-key map [seperator-one] '(menu-item "--")) 
    map) "Keymap for the LAWLIST context menu.") 

(defun lawlist-popup-context-menu (event &optional prefix) 
    "Popup a context menu." 
    (interactive "@e \nP") 
    (define-key lawlist-context-menu-map [lawlist-major-mode-menu] 
     `(menu-item ,(symbol-name major-mode) 
     ,(mouse-menu-major-mode-map) :visible t)) 
    (define-key lawlist-context-menu-map (vector major-mode) 
     `(menu-item ,(concat "YAS " (symbol-name major-mode)) 
     ,(gethash major-mode yas--menu-table) 
      :visible (yas--show-menu-p ',major-mode))) 
    (popup-menu lawlist-context-menu-map event prefix)) 

(global-set-key [mouse-3] 'lawlist-popup-context-menu) 

Example http://www.lawlist.com/images/context-menu.png


次のリンクでも、関連する例を参照してください:https://stackoverflow.com/a/24346990/2112489

関連する問題