diff options
Diffstat (limited to 'oni-nxml')
| -rw-r--r-- | oni-nxml/Eldev | 13 | ||||
| -rw-r--r-- | oni-nxml/oni-nxml.el | 69 | ||||
| -rw-r--r-- | oni-nxml/snippets/nxml-mode/pencil-property | 7 | ||||
| -rw-r--r-- | oni-nxml/snippets/nxml-mode/pencil-property-value | 5 | ||||
| -rw-r--r-- | oni-nxml/snippets/nxml-mode/pencil-shortcut | 9 |
5 files changed, 0 insertions, 103 deletions
diff --git a/oni-nxml/Eldev b/oni-nxml/Eldev deleted file mode 100644 index 1ba3134..0000000 --- a/oni-nxml/Eldev +++ /dev/null @@ -1,13 +0,0 @@ -; -*- mode: emacs-lisp; lexical-binding: t -*- - -;; Uncomment some calls below as needed for your project. -(eldev-use-package-archive 'gnu-elpa) -;(eldev-use-package-archive 'nongnu-elpa) -(eldev-use-package-archive 'melpa) -(eldev-use-package-archive `("oni" . ,(expand-file-name "../bin"))) - -(eldev-use-plugin 'autoloads) - -(setf eldev-files-to-package - `(:or ,eldev-files-to-package - '("*.el" "./snippets/**/*"))) diff --git a/oni-nxml/oni-nxml.el b/oni-nxml/oni-nxml.el deleted file mode 100644 index 4ecce90..0000000 --- a/oni-nxml/oni-nxml.el +++ /dev/null @@ -1,69 +0,0 @@ -;;; oni-nxml.el --- NXML configuration -*- lexical-binding: t; -*- - -;; Copyright (C) 2019 Tom Willemse - -;; Author: Tom Willemse <tom@ryuslash.org> -;; Keywords: local -;; Version: 2021.1201.134152 -;; Package-Requires: (oni-yasnippet reformatter) - -;; 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 <https://www.gnu.org/licenses/>. - -;;; Commentary: - -;; NXML configuration - -;;; Code: - -(require 'yasnippet) - -(defconst oni-nxml-root - (file-name-directory - (or load-file-name - (buffer-file-name))) - "The directory where ‘oni-nxml’ was loaded from.") - -(defconst oni-nxml-snippets-dir - (expand-file-name "snippets" oni-nxml-root) - "The directory where ‘oni-nxml’ stores its snippets.") - -(defun oni-nxml-snippets-initialize () - "Initialize the snippets for ‘oni-nxml’." - (when (boundp 'yas-snippet-dirs) - (add-to-list 'yas-snippet-dirs oni-nxml-snippets-dir t)) - (yas-load-directory oni-nxml-snippets-dir)) - -(defun oni-nxml--auto-fill-mode () - "Enable ‘auto-fill-mode’ only for comments." - (setq-local comment-auto-fill-only-comments t) - (auto-fill-mode)) - -(add-hook 'nxml-mode-hook 'oni-nxml--auto-fill-mode) - -(reformatter-define oni-nxml-xmllint - :program "xmllint" - :args '("--nonet" "--format" "-") - :lighter "") - -;;;###autoload -(add-to-list 'auto-mode-alist '("\\.targets\\'" . nxml-mode)) -;;;###autoload -(add-to-list 'auto-mode-alist '("\\.proj\\'" . nxml-mode)) - -(with-eval-after-load 'nxml-mode - (with-eval-after-load 'yasnippet - (oni-nxml-snippets-initialize))) - -(provide 'oni-nxml) -;;; oni-nxml.el ends here diff --git a/oni-nxml/snippets/nxml-mode/pencil-property b/oni-nxml/snippets/nxml-mode/pencil-property deleted file mode 100644 index 7fafcb8..0000000 --- a/oni-nxml/snippets/nxml-mode/pencil-property +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: PencilProperty -# key: p -# -- -<Property name="$1" - displayName="$2" - type="$3">$4</Property>
\ No newline at end of file diff --git a/oni-nxml/snippets/nxml-mode/pencil-property-value b/oni-nxml/snippets/nxml-mode/pencil-property-value deleted file mode 100644 index 5da3d10..0000000 --- a/oni-nxml/snippets/nxml-mode/pencil-property-value +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: PropertyValue -# key: pv -# -- -<PropertyValue name="$1">$2</PropertyValue>
\ No newline at end of file diff --git a/oni-nxml/snippets/nxml-mode/pencil-shortcut b/oni-nxml/snippets/nxml-mode/pencil-shortcut deleted file mode 100644 index e760d27..0000000 --- a/oni-nxml/snippets/nxml-mode/pencil-shortcut +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: Shortcut -# key: s -# -- -<Shortcut displayName="$1" - icon="$2" - to="$3"> - $0 -</Shortcut>
\ No newline at end of file |
