Skip to content

Commit

Permalink
features: add auto-insert
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraveiro committed Mar 11, 2024
1 parent b0abc58 commit 27bc4b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions config/features.org
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,17 @@ your editor.

(use-package yasnippet-snippets
:init (yasnippet-snippets-initialize))

;; useful with YAS. See:
;; https://emacs.stackexchange.com/questions/45629/template-for-new-file
(use-package autoinsert
:config
(setq auto-insert-query nil)
(auto-insert-mode 1)
(add-hook 'find-file-hook 'auto-insert)
;; (setq auto-insert-alist nil) ;; remove this like to restore defaults
;; (add-to-list 'auto-insert-alist '("CMakeLists\\.txt$" . [nega/yas-cmake-bp]))
)
#+end_src

* Spell checking
Expand Down
2 changes: 1 addition & 1 deletion config/quality_of_life.org
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ START and END mark the region."
"Open Windows Explorer on the current directory."
(interactive)
(if (eq system-type 'windows-nt)
(shell-command "explorer .")
(start-process "EXPLORER" nil "explorer" ".")
(message "Command only available on Windows.")))
#+end_src

Expand Down

0 comments on commit 27bc4b4

Please sign in to comment.