0

创建了以下 YASnippet(在 Org 模式下自动创建标题):

# key: org
# name: org
# --
#+TITLE: ${1:`(capitalize (file-name-nondirectory (file-name-sans-extension
(buffer-file-name))))`}
#+Time-stamp: <2013-10-08 Tue 21:32>
#+INCLUDE: "preamble.org"

$0

在大多数情况下一切都是正确的,除非我在标题中输入“t”字符......

它适用于其他字母,而不是那个。找不到原因。任何想法?

4

1 回答 1

0

The problem was in the following code:

  ;; allow YASnippet to do its thing in Org files
  (add-hook 'org-mode-hook
            (lambda ()
              ;; YASnippet (using the new org-cycle hooks)
              (add-to-list 'org-tab-first-hook
                           'yas/org-very-safe-expand)

              ;; When enabled, problem with inserting letter `t' in YASnippet fields
              ;; (define-key yas/keymap
              ;;   (kbd "tab") 'yas/next-field) ; `yas/next-field-or-maybe-expand'?
              ))
于 2014-03-21T13:53:17.820 回答