[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 2de7d1d585 088/500: Don't require company to be i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 2de7d1d585 088/500: Don't require company to be installed. |
Date: |
Sat, 29 Jan 2022 08:26:38 -0500 (EST) |
branch: elpa/nix-mode
commit 2de7d1d5852e935f37b84d76f3621284eba5c929
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Don't require company to be installed.
---
nix-mode.el | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index 8e1d309a7c..6e03e2635d 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -15,8 +15,6 @@
;;; Code:
-(require 'company)
-
;; Emacs 24.2 compatability
(unless (fboundp 'setq-local)
(defmacro setq-local (var val)
@@ -495,6 +493,10 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
(when (featurep 'flycheck) (require 'nix-flycheck))
+(when (require 'company nil 'noerror) (add-to-list
+ 'company-backends
+ 'company-nix))
+
;;;###autoload
(define-derived-mode nix-mode prog-mode "Nix"
"Major mode for editing Nix expressions.
@@ -547,11 +549,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
(setq-local paragraph-start "[ \t]*\\(#+[ \t]*\\)?$")
(setq-local paragraph-separate paragraph-start)
- (easy-menu-add nix-mode-menu nix-mode-map)
-
- ;; Company
- (add-to-list 'company-backends 'company-nix)
- (company-mode))
+ (easy-menu-add nix-mode-menu nix-mode-map))
;;;###autoload
(progn
- [nongnu] elpa/nix-mode 22500b7f72 038/500: fix tabbing, (continued)
- [nongnu] elpa/nix-mode 22500b7f72 038/500: fix tabbing, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d8b088a4e2 034/500: Disable string indenting again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3ad8e224d7 043/500: Use looking-back for hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ec9cf2f4e5 061/500: Remove nix-syntax-propertize-escaped-antiquote., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c339fc9062 072/500: More small nitpicks., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1cc3cffa29 060/500: Pick up extra "let" found in acme.nix., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1772d1f0db 077/500: Fixup syntax entry., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode fa7a4a0d4d 078/500: Update README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9015ef6603 029/500: check beginning for comment indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0ada62bbee 091/500: Merge pull request #11 from matthewbauer/completion, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2de7d1d585 088/500: Don't require company to be installed.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 8d2a304865 098/500: Fontification: smoked out corner cases, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 702f62abff 103/500: lexical bindings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 03e39da643 099/500: Fix flycheck lexical-binding complaints., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1c54c72161 121/500: Remove visit-file., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5e943a77e8 133/500: Fix syntax error, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 804ec4e7de 122/500: Remove visit file /2, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3957a90b1a 125/500: Add `null` to list of Nix builtins, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 046afc4b4d 127/500: Rework indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 18abc92bd8 141/500: fix mmm, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode eb109c7a7f 137/500: Merge pull request #26 from ljli/lex-pos-fix, ELPA Syncer, 2022/01/29