133 Commits

Author SHA1 Message Date
Mark Oteiza
8742607120 stop clobbering company-backends
* using add-hook to modify company-backends is bad juju
* there does not appear to be a sensible way for a mode to
  modify company-backends either in the variable docstring or the
  online documentation here

https://company-mode.github.io/manual/Backends.html

  so... we should not modify it.
* document the added effort to use the company backend
* the only additional fanciness to `systemd-company-backend' is that
  it will automatically insert an = after completing a directive, so
  it might be nice to work that into the capf completion somehow and
  trash the company-specific code
2023-01-31 22:02:07 -05:00
Mark Oteiza
964ec9d4e0 happy new year 2023-01-31 21:55:06 -05:00
Mark Oteiza
b6ae63a236 add specifiers (leave obsoleted ones in for now) 2021-02-09 15:52:26 -05:00
Mark Oteiza
0416fe454a drop some unneeded eval-when-compile 2021-02-09 15:52:05 -05:00
Mark Oteiza
20c9d97e24 happy new year 2021-02-09 15:51:44 -05:00
Mark Oteiza
ec8f6cfe9d happy new year 2020-01-30 13:29:39 -05:00
Mark Oteiza
51c148e09a update urls
drop mention of marmalade
2019-12-19 18:04:45 -05:00
Mark Oteiza
9265ef89ff update section lists
there are very many different specialized network sections now.  only
a subset of them have been added here
2019-12-19 18:03:47 -05:00
Mark Oteiza
077aedde23 systemd 244 directives
network stuff is getting split up across a bunch of different sections
which is annoying.  dnssec files are a thing now as well.  finding
a better way to do this would be nice
2019-12-19 18:01:39 -05:00
stardiviner
a9f82b1f8b add systemd-mode company backend buffer locally 2019-11-17 11:14:46 -05:00
Mark Oteiza
c6e06dfa93 happy new year 2019-01-01 04:23:36 -05:00
Lucas Werkmeister
401d71c2dd Add %E, %j, %J, %T, %V specifiers
These specifiers were added in systemd v239.
2018-06-29 17:06:22 -04:00
Lucas Werkmeister
21d50f27d8 Sort specifiers alphabetically
The systemd.unit(5) manpage sorts unit file specifiers alphabetically
since commit systemd/systemd@709f4c472c, and since the order in this
regular expression is even less relevant than in the manpage, let’s just
do the same to make it easy to compare the letter sets between the two.
2018-06-29 17:06:13 -04:00
Lucas Werkmeister
e97f78ee11 Add %S, %C, %L specifiers
These specifiers for the state, cache, and log directory root were added in systemd v236.
2018-04-14 14:11:36 -04:00
Mark Oteiza
228f0b99ca happy new year 2018-01-01 21:03:40 -05:00
Mark Oteiza
22f024fe8f systemd 235 2017-10-06 16:52:43 -04:00
Mark Oteiza
1e7567a997 prepare v1.6 v1.6 2017-09-18 20:49:18 -04:00
Mark Oteiza
70c762072d add -pkg file to clean target 2017-09-18 20:47:03 -04:00
Mark Oteiza
23c0caf214 extend anchored matches past the current line if \ broken 2017-09-18 07:46:09 -04:00
Mark Oteiza
839094df0e use rx here 2017-09-17 15:37:16 -04:00
Mark Oteiza
16ba942afd rename tests directory 2017-09-17 15:08:47 -04:00
Mark Oteiza
47ae79aed0 Use syntax-propertize and font-lock-extend-region-functions 2017-09-17 14:50:12 -04:00
Mark Oteiza
a3d39214b7 extend multi-line matching to sections and keys 2017-09-11 09:25:09 -04:00
Mark Oteiza
5c9389dae3 move this matcher down with the other ones 2017-09-07 22:04:50 -04:00
Mark Oteiza
b0c1d64d62 add multi-line comment highlighting
between font-lock-keywords, the elisp manual, examples in the emacs
source (sh-mode is one) and the webernets, it is rather difficult to
find a way to properly deal with multi-line construct syntax
highlighting.  this is a way leveraging anchored matching and
jit-lock.
2017-09-07 22:03:17 -04:00
Mark Oteiza
3ff4f0f706 anchor some matchers to follow "=" 2017-09-07 21:59:33 -04:00
Mark Oteiza
a4f409641a moar keywords 2017-09-07 21:57:46 -04:00
Mark Oteiza
995ebbe3d5 add conventional environment variable highlighting 2017-09-03 04:33:37 -04:00
Mark Oteiza
4c0ec1e599 split font-lock-keywords into levels
more importantly, bind systemd-font-lock-keywords to a _symbol_.
this makes hacking font-lock-keywords on the fly a little easier, in
addition to adding to customization/granularity
(info "(elisp) Font Lock Basics")
2017-09-03 04:29:03 -04:00
Mark Oteiza
7bb8f0969d correct syntax? 2017-09-03 03:39:52 -04:00
Mark Oteiza
2c71ec5529 systemd 234.11 2017-07-27 08:04:54 -04:00
Mark Oteiza
9cfd315337 simplify 2017-07-08 18:34:46 -04:00
Mark Oteiza
28601d814f woops 2017-07-08 18:02:26 -04:00
Mark Oteiza
930e82e5fe font lock additional exec prefix 2017-07-07 21:33:41 -04:00
Mark Oteiza
9693935bdd nix extra newline 2017-07-06 22:39:05 -04:00
Mark Oteiza
6884c8f9c6 systemd 233? 2017-07-06 21:12:20 -04:00
Mark Oteiza
4c1b2befd0 bump v1.5 2017-02-02 21:44:22 -05:00
Mark Oteiza
a2c60f407a happy belated new year 2017-02-02 21:44:00 -05:00
Mark Oteiza
59ce8ad415 simpler while test 2017-02-02 21:43:08 -05:00
Mark Oteiza
bd94a2cb97 shim in support for nspawn settings files 2017-01-22 20:45:01 -05:00
Mark Oteiza
b561c6bce9 happy new year 2017-01-01 00:03:40 -05:00
Mark Oteiza
fa1277d1cd add reminder
The new regex is not too hard to generate with some set/combinatorics
fun, but perhaps going about this a different way would be better

  (let ((s (delq nil (powerset '("@" "-" "+")))))
    (concat "="
     (regexp-opt
      (mapcar (lambda (ls) (apply #'concat ls))
              (apply #'append (mapcar #'permutations s)))
     "\\(?1:")))
2016-12-02 01:17:46 -05:00
Mark Oteiza
4c073b0c04 missed one 2016-12-02 01:16:12 -05:00
Mark Oteiza
7874a102a5 future flycheck has a checker for units 2016-12-02 01:14:39 -05:00
Mark Oteiza
0a4b6c49d3 shrug 2016-12-02 01:14:06 -05:00
Mark Oteiza
bf7b281cdb nix unneeded arg 2016-12-02 01:11:04 -05:00
Mark Oteiza
f0b29ad130 systemd v232 directives 2016-12-02 00:35:50 -05:00
Mark Oteiza
7769000ba6 bump to 0.4.1 v1.4.1 2016-09-28 22:56:56 -04:00
Mark Oteiza
a73c16aac0 nix LOCAL argument for adding to company-backends 2016-09-27 12:11:38 -04:00
Mark Oteiza
16be18350c don't indiscriminately use relative file name 2016-09-27 12:07:08 -04:00