Created
May 29, 2019 19:42
-
-
Save zeta-00/d4cdfa2ed436b9e231ee5731649566c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; nixos: | |
(require 'company) | |
(global-set-key (kbd "C-c C-S-n") 'helm-nixos-options) | |
(global-set-key (kbd "C-c C-u") 'nix-update-fetch) | |
(global-pretty-sha-path-mode) | |
(add-to-list 'company-backends 'company-cabal) | |
(add-hook 'after-init-hook 'global-company-mode) | |
(add-to-list 'company-backends 'company-nixos-options) | |
;; flycheck: | |
(setq flycheck-command-wrapper-function | |
(lambda (command) (apply 'nix-shell-command (nix-current-sandbox) command)) | |
flycheck-executable-find | |
(lambda (cmd) (nix-executable-find (nix-current-sandbox) cmd))) | |
;; haskell mode: | |
(setq haskell-process-wrapper-function | |
(lambda (args) (apply 'nix-shell-command (nix-current-sandbox) args))) | |
;; end nixos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment