Skip to content

Instantly share code, notes, and snippets.

View zeta-00's full-sized avatar

zeta zeta-00

View GitHub Profile
;; 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
@zeta-00
zeta-00 / gist:460757a72dc7487794140141557d1b77
Created June 2, 2019 17:45
.emacs, trying to set hie lsp to automatically open when opening a haskell file:
;; nixos setup:
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile (require 'use-package))
(setq use-package-always-ensure nil
use-package-ensure-function 'ignore
package-archives nil
package-enable-at-startup nil
package--init-file-ensured t)
(package-initialize)
@zeta-00
zeta-00 / gist:8c73908f4abf0c4e457140ce8051f956
Created June 2, 2019 17:47
set: hie lsp to automatically activate when opening a haskell file
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile (require 'use-package))
(setq use-package-always-ensure nil
use-package-ensure-function 'ignore
package-archives nil
package-enable-at-startup nil
package--init-file-ensured t)
(package-initialize)
;; language server protocol
(setq lsp-document-sync-method 'full)
(require 'lsp-mode)
(require 'lsp-ui)
(add-hook 'lsp-mode-hook 'lsp-ui-mode)
(add-hook 'haskell-mode-hook 'flycheck-mode)
(require 'lsp)
(require 'lsp-haskell)
(add-hook 'haskell-mode-hook #'lsp)
;; (add-hook 'haskell-mode-hook 'direnv-update-environment)
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile (require 'use-package))
(setq use-package-always-ensure nil
use-package-ensure-function 'ignore
package-archives nil
package-enable-at-startup nil
package--init-file-ensured t)
(package-initialize)
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile (require 'use-package))
(setq use-package-always-ensure nil
use-package-ensure-function 'ignore
package-archives nil
package-enable-at-startup nil
package--init-file-ensured t)
(package-initialize)
Debugger entered--Lisp error: (void-function flycheck-mode)
flycheck-mode()
run-hooks(change-major-mode-after-body-hook prog-mode-hook haskell-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook haskell-mode-hook))
run-mode-hooks(haskell-mode-hook)
haskell-mode()
set-auto-mode-0(haskell-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
home = {
packages = with pkgs; [
(haskellPackages.ghcWithHoogle (hpkgs: with hpkgs; [
cabal-install
cabal2nix
nix-prefetch-git
styx
# haskell-overridez
tinc
home = {
packages = with pkgs; [
(haskellPackages.ghc_8_6_5 (hpkgs: with hpkgs; [
cabal-install
cabal2nix
nix-prefetch-git
styx
# haskell-overridez
tinc
home = {
packages = with pkgs; [
(haskellPackages.ghc_8_6_1 (hpkgs: with hpkgs; [
cabal-install
cabal2nix
nix-prefetch-git
styx
# haskell-overridez
tinc