feat: Add nix-mode & nix-config function
* install nix-mode by default * add a function to quickly open the system configuration.nix
This commit is contained in:
		
							parent
							
								
									af89133821
								
							
						
					
					
						commit
						5e48ce3f9b
					
				
					 3 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								init.el
									
										
									
									
									
								
							|  | @ -33,6 +33,7 @@ | |||
|     markdown-mode+ | ||||
|     multiple-cursors | ||||
|     multi-term | ||||
|     nix-mode | ||||
|     paredit | ||||
|     password-store | ||||
|     pkgbuild-mode | ||||
|  |  | |||
|  | @ -15,6 +15,9 @@ | |||
|  '(ns-alternate-modifier (quote none)) | ||||
|  '(ns-command-modifier (quote control)) | ||||
|  '(ns-right-command-modifier (quote meta)) | ||||
|  '(package-selected-packages | ||||
|    (quote | ||||
|     (fish-mode nix-mode yaml-mode undo-tree terraform-mode switch-window smart-mode-line rust-mode rainbow-mode rainbow-delimiters puppet-mode pkgbuild-mode password-store paredit multi-term multiple-cursors markdown-mode+ magit iy-go-to-char idle-highlight-mode hi2 helm haskell-mode gruber-darker-theme go-mode flycheck erlang dockerfile-mode confluence browse-kill-ring ag ace-jump-mode))) | ||||
|  '(require-final-newline (quote visit-save))) | ||||
| (custom-set-faces | ||||
|  ;; custom-set-faces was added by Custom. | ||||
|  |  | |||
|  | @ -111,4 +111,9 @@ Including indent-buffer, which should not be called automatically on save." | |||
|   (interactive) | ||||
|   (eww "https://blog.fefe.de/")) | ||||
| 
 | ||||
| ;; Open this machines NixOS config | ||||
| (defun nix-config () | ||||
|   (interactive) | ||||
|   (find-file "/etc/nixos/configuration.nix")) | ||||
| 
 | ||||
| (provide 'functions) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue