mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
bug fix: failed to recognize user customized yas/trigger-key
This commit is contained in:
parent
b312bc8c38
commit
07bada8634
@ -6,6 +6,11 @@ ChangeLog
|
|||||||
:Contact: pluskid@gmail.com
|
:Contact: pluskid@gmail.com
|
||||||
:Date: 2008-03-22
|
:Date: 2008-03-22
|
||||||
|
|
||||||
|
0.4.3 / 2008-03-23
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Bug fix: failed to recognize user customized yas/trigger-key.
|
||||||
|
|
||||||
0.4.2 / 2008-03-22
|
0.4.2 / 2008-03-22
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
;; Copyright 2008 pluskid
|
;; Copyright 2008 pluskid
|
||||||
;;
|
;;
|
||||||
;; Author: pluskid <pluskid@gmail.com>
|
;; Author: pluskid <pluskid@gmail.com>
|
||||||
;; Version: 0.4.2
|
;; Version: 0.4.3
|
||||||
;; X-URL: http://code.google.com/p/yasnippet/
|
;; X-URL: http://code.google.com/p/yasnippet/
|
||||||
|
|
||||||
;; This file is free software; you can redistribute it and/or modify
|
;; This file is free software; you can redistribute it and/or modify
|
||||||
@ -159,7 +159,7 @@ Here's an example:
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Internal variables
|
;; Internal variables
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(defvar yas/version "0.4.2")
|
(defvar yas/version "0.4.3")
|
||||||
|
|
||||||
(defvar yas/snippet-tables (make-hash-table)
|
(defvar yas/snippet-tables (make-hash-table)
|
||||||
"A hash table of snippet tables corresponding to each major-mode.")
|
"A hash table of snippet tables corresponding to each major-mode.")
|
||||||
@ -214,7 +214,6 @@ Here's an example:
|
|||||||
"Hook to call when yas/minor-mode is on.")
|
"Hook to call when yas/minor-mode is on.")
|
||||||
(defvar yas/minor-mode-off-hook nil
|
(defvar yas/minor-mode-off-hook nil
|
||||||
"Hook to call when yas/minor-mode is off.")
|
"Hook to call when yas/minor-mode is off.")
|
||||||
(define-key yas/minor-mode-map yas/trigger-key 'yas/expand)
|
|
||||||
(define-minor-mode yas/minor-mode
|
(define-minor-mode yas/minor-mode
|
||||||
"Toggle YASnippet mode.
|
"Toggle YASnippet mode.
|
||||||
With no argument, this command toggles the mode.
|
With no argument, this command toggles the mode.
|
||||||
@ -229,7 +228,8 @@ You can customize the key through `yas/trigger-key'."
|
|||||||
nil
|
nil
|
||||||
;; The indicator for the mode line.
|
;; The indicator for the mode line.
|
||||||
" yas"
|
" yas"
|
||||||
:group 'editing)
|
:group 'editing
|
||||||
|
(define-key yas/minor-mode-map yas/trigger-key 'yas/expand))
|
||||||
|
|
||||||
(defun yas/minor-mode-on ()
|
(defun yas/minor-mode-on ()
|
||||||
"Turn on YASnippet minor mode."
|
"Turn on YASnippet minor mode."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user