[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to have yasnippet only for C/C++ files ?
From: |
jonetsu |
Subject: |
Re: How to have yasnippet only for C/C++ files ? |
Date: |
Tue, 26 Mar 2019 15:08:57 -0400 |
On Tue, 26 Mar 2019 11:46:58 -0400
Doug Davis <ddavis@ddavis.io> wrote:
> Check here:
> https://github.com/joaotavora/yasnippet#use-yas-minor-mode-on-a-per-buffer-basis
>
> Looks like you can do
>
> (add-hook 'c-mode-common-hook #'yas-minor-mode)
Thanks. Since I also do some Perl from time to time, knowing about a
mode from which all programming modes are derived is useful in this
case for yasnippets:
(add-hook 'prog-mode-hook #'yas-minor-mode)
Cheers.