[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/systemd d03b70c 043/131: derive from conf-mode
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/systemd d03b70c 043/131: derive from conf-mode |
Date: |
Sun, 29 Aug 2021 11:35:11 -0400 (EDT) |
branch: elpa/systemd
commit d03b70c12167c8773c9bd39f9a32af683951d45e
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>
derive from conf-mode
---
systemd.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/systemd.el b/systemd.el
index ea53ba5..3176116 100644
--- a/systemd.el
+++ b/systemd.el
@@ -34,6 +34,7 @@
;;; Code:
+(require 'conf-mode)
(require 'thingatpt)
(require 'url-parse)
@@ -149,6 +150,7 @@ current unit file, defaulting to the link under point, if
any."
(defvar systemd-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?\" "." table)
+ (modify-syntax-entry ?\; " " table)
(modify-syntax-entry ?\n ">" table)
(modify-syntax-entry ?\% "\\" table)
table)
@@ -175,7 +177,7 @@ current unit file, defaulting to the link under point, if
any."
;;;###autoload (add-to-list 'auto-mode-alist '("\\.override\\.conf.*\\'" .
systemd-mode))
;;;###autoload
-(define-derived-mode systemd-mode fundamental-mode "Systemd"
+(define-derived-mode systemd-mode conf-mode "Systemd"
"Major mode for editing systemd unit files. See
http://www.freedesktop.org/wiki/Software/systemd/ for more
information about systemd. The hook `systemd-mode-hook' is run
@@ -183,8 +185,9 @@ at mode initialization.
Key bindings:
\\{systemd-mode-map}"
+ (set-keymap-parent systemd-mode-map nil)
(systemd-company--setup systemd-use-company-p)
- (setq-local comment-start systemd-comment-start)
+ (conf-mode-initialize systemd-comment-start)
(setq-local font-lock-defaults '(systemd-font-lock-keywords)))
(provide 'systemd)
- [nongnu] elpa/systemd b03e616 079/131: bump, (continued)
- [nongnu] elpa/systemd b03e616 079/131: bump, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a1633c2 083/131: systemd 231 directives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 7769000 086/131: bump to 0.4.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 4c0ec1e 105/131: split font-lock-keywords into levels, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 9265ef8 126/131: update section lists, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 6b0878e 016/131: add autoload for drop-ins with `systemctl edit`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 7ef42d5 020/131: adopt browse url function from lua-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd c8d3472 012/131: add commentary, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd ac11adf 025/131: add tunable for using either `man` or `woman`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd d7a9c1d 045/131: fontify "-" and "@" prefixes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd d03b70c 043/131: derive from conf-mode,
ELPA Syncer <=
- [nongnu] elpa/systemd 6f2e31e 048/131: add a mode menu, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 1a7af12 051/131: no strings with single quotes either, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 26de1dd 056/131: don't turn on company by default, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd cd22a2c 065/131: use a-zA-Z0-9, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd bd1b86e 072/131: woops!, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd f74f3c8 075/131: add to buffer-local hooks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 921f8d0 074/131: nix systemd-use-company-p, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a73c16a 085/131: nix LOCAL argument for adding to company-backends, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd bf7b281 088/131: nix unneeded arg, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd b561c6b 093/131: happy new year, ELPA Syncer, 2021/08/29