Getting yasnippet to work with Org mode

There are various discussions around the conflict between Org Mode and yasnippet and how to fix it. This is how I got them to play nicely together. You can read about my other Emacs configurations . (use-package yasnippet :init (defun yas/org-very-safe-expand () (let ((yas/fallback-behavior 'return-nil)) (yas/expand))) :hook ((emacs-lisp-mode . yas-minor-mode) (python-mode . yas-minor-mode) (org-mode . yas-minor-mode) (org-mode . (lambda () (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand) (define-key yas/keymap [tab] 'yas/next-field)))) :config (setq-default yas-snippet-dirs `(,(expand-file-name "snippets/" user-emacs-directory))) (yas-reload-all)) GNU Emacs 28.1 Org mode version 9.5.3 YASnippet 0.14.0 ...

May 5, 2022 · 1 min · Stewart V. Wright

Loops in Lisp

There are two type of lisp coders. Those that love the loop macro and those that don’t. ...

May 3, 2022 · 1 min · Stewart V. Wright

Find most recently changed files of a type

How would you find the .org (or .pdf, .doc, …) file you created the most recently? ...

April 29, 2022 · 1 min · Stewart V. Wright

This is my blog

This is my blog. The design isn’t revolutionary. ...

April 28, 2022 · 2 min · Stewart V. Wright

The Mars Rover Tech Challenge (in Lisp!) Part 2

The Mars Rover Tech Challenge (in Lisp!) Part 2 at Vifortech Solutions - Blog

February 15, 2020 · 1 min · Stewart V. Wright

The Mars Rover Tech Challenge (in Lisp!) Part 1

The Mars Rover Tech Challenge (in Lisp!) Part 1 at Vifortech Solutions - Blog

February 8, 2020 · 1 min · Stewart V. Wright

Real Estate price forecasts in the media

Real Estate price forecasts in the media at Vifortech Solutions - Blog

January 27, 2019 · 1 min · Stewart V. Wright

Fixing Emacs' unknown and untrusted authority TLS error

Fixing Emacs’ unknown and untrusted authority TLS error at Vifortech Solutions - Blog

October 24, 2017 · 1 min · Stewart V. Wright

The flu as an analogy for risk management

The flu as an analogy for risk management at Vifortech Solutions - Blog

October 5, 2017 · 1 min · Stewart V. Wright

Real estate as an investment

Real estate as an investment at Vifortech Solutions - Blog

July 26, 2017 · 1 min · Stewart V. Wright