0

I want to use yasnippet in three modes. I have this in my init.el:

;;; Yasnippet
(use-package yasnippet
  :commands yas-minor-mode
  :config (yas-reload-all)
  :hook ((org-mode text-mode emacs-lisp-mode) . yas-minor-mode))

I can create and successfully expand snippets for org-mode and text-mode. My snippets are stored here: /home/red/.emacs.d/snippets.

In this folder I also have a lisp-mode folder. A trivial example of a snippet for lisp is this:

# -*- mode: snippet -*-
# name: line
# key: ln
# --
;; ------------------------------------------------
;; ------------------------------------------------

However when I type ln and hit TAB, nothing happens.

Drew
  • 75,699
  • 9
  • 109
  • 225
Edman
  • 1,167
  • 7
  • 13

1 Answers1

1

Put them in "emacs-lisp-mode" folder.

The Emacs Lisp mode is called emacs-lisp-mode.

Arktik
  • 932
  • 4
  • 15