[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 4528033194 018/500: Add "nix-mode-reload" functio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 4528033194 018/500: Add "nix-mode-reload" function. |
Date: |
Sat, 29 Jan 2022 08:26:31 -0500 (EST) |
branch: elpa/nix-mode
commit 45280331949c3d80f39a00d78c5c79367f969ed9
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Add "nix-mode-reload" function.
---
nix-mode.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/nix-mode.el b/nix-mode.el
index 5444dcc9af..8ada93a410 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -224,6 +224,13 @@ The hook `nix-mode-hook' is run when Nix mode is started.
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
(add-to-list 'auto-mode-alist '("\\.nix.in\\'" . nix-mode)))
+(defun nix-mode-reload ()
+ "Reload Nix mode."
+ (interactive)
+ (unload-feature 'nix-mode)
+ (require 'nix-mode)
+ (nix-mode))
+
(provide 'nix-mode)
;;; nix-mode.el ends here
- [nongnu] elpa/nix-mode d13d70b37d 377/500: Merge pull request #102 from yilinwei/master, (continued)
- [nongnu] elpa/nix-mode d13d70b37d 377/500: Merge pull request #102 from yilinwei/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a00b3f776d 384/500: Merge pull request #103 from yilinwei/patch-1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode bb0b49e3ac 408/500: Merge pull request #112 from leungbk/makefile-load-path, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7d09073976 424/500: Merge pull request #121 from znewman01/fixbuild, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4941961c75 059/500: Get rid of extra hanging indent matches., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c577957d66 347/500: Merge pull request #85 from NixOS/fix-84, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode cccd68768b 319/500: Install info page to the right location, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e820157994 338/500: Merge pull request #82 from jabranham/comp-warns, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7556c032dc 421/500: Use the located nixfmt binary for formatting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode df4ba688a7 435/500: Merge branch 'nix-search-updates', ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4528033194 018/500: Add "nix-mode-reload" function.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode f3b4215166 004/500: Update metadata, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 69c7c87caa 017/500: Sert comment-multi-line., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 83229f0d4c 041/500: Fix flycheck errors., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 76ad5882f0 046/500: format, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3ef4647aa2 052/500: Fixup lets/ins counting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0ad464e25a 058/500: Add ']' to match closing parens., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 376cbff828 054/500: More let fixes., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1a1ce340af 070/500: Fix indentation case when '{' at beginning., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode dc705bb4df 057/500: Disable generic hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2be81fe55b 074/500: Get rid of match-end., ELPA Syncer, 2022/01/29