From 09a4099586657170cbdcff071b2d0fac5ed133b7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 28 May 2026 02:12:40 -0700 Subject: oni-yasnippet: Move all snippets to ‘oni-yasnippet’ There is no real point in having them all separate. Having them all in a single place makes them much easier to manage. --- oni-html.el | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 oni-html.el (limited to 'oni-html.el') diff --git a/oni-html.el b/oni-html.el new file mode 100644 index 0000000..f06f8a5 --- /dev/null +++ b/oni-html.el @@ -0,0 +1,43 @@ +;;; oni-html.el --- HTML configuration -*- lexical-binding: t; -*- + +;; Copyright (C) 2019 Tom Willemse + +;; Author: Tom Willemse +;; Keywords: local +;; Version: 2026.0527.003123 + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; HTML configuration + +;;; Code: + +(defconst oni-html-root + (file-name-directory + (or load-file-name + (buffer-file-name))) + "The directory where ‘oni-html’ was loaded from.") + +(defun oni-html--auto-fill-mode () + "Enable ‘auto-fill-mode’ only for comments." + (setq-local comment-auto-fill-only-comments t) + (auto-fill-mode)) + +(add-hook 'html-mode-hook 'electric-pair-local-mode) +(add-hook 'html-mode-hook 'oni-html--auto-fill-mode) + +(provide 'oni-html) +;;; oni-html.el ends here -- cgit v1.3-2-g0d8e