Skip to content

Instantly share code, notes, and snippets.

@meditans
Created October 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meditans/9e2698ba5a311607ca98 to your computer and use it in GitHub Desktop.
Save meditans/9e2698ba5a311607ca98 to your computer and use it in GitHub Desktop.
;; -*- mode: emacs-lisp -*-
(defun dotspacemacs/layers ()
(setq-default
dotspacemacs-distribution 'spacemacs
dotspacemacs-configuration-layer-path '()
dotspacemacs-configuration-layers '(
emacs-lisp
git github version-control
latex org markdown
spell-checking syntax-checking
erc ranger
(shell :variables
shell-default-shell 'eshell
shell-enable-smart-eshell t)
(haskell :variables
haskell-enable-hindent-style "gibiansky"
haskell-process-type 'stack-ghci
haskell-tags-on-save t
haskell-process-use-presentation-mode t
haskell-process-suggest-haskell-docs-imports nil))
dotspacemacs-additional-packages '(helm-pages
pdf-tools
togetherly)
dotspacemacs-excluded-packages '()
dotspacemacs-delete-orphan-packages t))
(defun dotspacemacs/init ()
"Initialization function.
This function is called at the very startup of Spacemacs
initialization before layers configuration. You should not put
any user code in there besides modifying the variable values."
(setq-default
dotspacemacs-editing-style 'vim
dotspacemacs-verbose-loading nil
dotspacemacs-startup-banner 'official
dotspacemacs-startup-lists nil
dotspacemacs-themes '(spacemacs-light spacemacs-dark)
dotspacemacs-colorize-cursor-according-to-state t
dotspacemacs-default-font '("Source Code Pro"
:size 23
:weight normal
:width normal
:powerline-scale 1.1)
dotspacemacs-leader-key "SPC"
dotspacemacs-emacs-leader-key "M-m"
dotspacemacs-major-mode-leader-key ","
dotspacemacs-major-mode-emacs-leader-key "C-M-m"
dotspacemacs-command-key ":"
dotspacemacs-remap-Y-to-y$ t
dotspacemacs-auto-save-file-location 'cache
dotspacemacs-use-ido nil
dotspacemacs-helm-resize nil
dotspacemacs-helm-no-header nil
dotspacemacs-helm-position 'bottom
dotspacemacs-enable-paste-micro-state t
dotspacemacs-which-key-delay 0.4
dotspacemacs-which-key-position 'bottom
dotspacemacs-loading-progress-bar t
dotspacemacs-fullscreen-at-startup nil
dotspacemacs-fullscreen-use-non-native nil
dotspacemacs-maximized-at-startup t
dotspacemacs-active-transparency 90
dotspacemacs-inactive-transparency 90
dotspacemacs-mode-line-unicode-symbols t
dotspacemacs-smooth-scrolling t
dotspacemacs-smartparens-strict-mode nil
dotspacemacs-highlight-delimiters 'all
dotspacemacs-persistent-server nil
dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
dotspacemacs-default-package-repository nil
)
)
(defun dotspacemacs/user-init ()
"Initialization function for user code. It is called immediately
after `dotspacemacs/init'. You are free to put any user code.")
(defun dotspacemacs/user-config ()
(setq-default flycheck-disabled-checkers '(haskell-ghc haskell-stack-ghc haskell-hlint))
(setq haskell-process-suggest-remove-import-lines nil
haskell-process-suggest-hoogle-imports nil
haskell-interactive-popup-errors nil
flycheck-ghc-args (quote ("-fno-warn-type-defaults")))
(setq flycheck-indication-mode nil)
(require 'togetherly)
(push 'haskell-mode page-break-lines-modes)
(global-page-break-lines-mode)
(spacemacs/toggle-golden-ratio-on)
(defun eshell/clear () "Clear the eshell buffer."
(let ((inhibit-read-only t)) (erase-buffer)))
)
;; Do not write anything past this comment. This is where Emacs will
;; auto-generate custom variable definitions.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(erc-hide-list (quote ("JOIN" "KICK" "NICK" "PART" "QUIT" "MODE")))
'(paradox-github-token t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment