Much about with various emacs things

This commit is contained in:
Frederik Hanghøj Iversen 2019-02-14 20:58:51 +01:00
parent c14e017bd5
commit 9afdc83564
3 changed files with 21 additions and 4 deletions

View file

@ -2,8 +2,8 @@
(require 'package) (require 'package)
(add-to-list 'package-archives (add-to-list 'package-archives
'("MELPA Stable" . "https://stable.melpa.org/packages/") t) '("MELPA Stable" . "https://stable.melpa.org/packages/") t)
;; (add-to-list 'package-archives (add-to-list 'package-archives
;; '("MELPA" . "https://melpa.org/packages/") t) '("MELPA" . "https://melpa.org/packages/") t)
(package-initialize) (package-initialize)
@ -16,17 +16,26 @@
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(agda2-program-args nil) '(agda2-program-args nil)
'(auth-sources (quote ("~/.authinfo" "~/.authinfo.gpg" "~/.netrc")))
'(blink-cursor-mode nil) '(blink-cursor-mode nil)
'(display-buffer-alist (quote (("*Buffer List*" display-buffer-same-window))))
'(echo-keystrokes 1e-10) '(echo-keystrokes 1e-10)
'(haskell-indentation-where-post-offset 0) '(haskell-indentation-where-post-offset 0)
'(haskell-indentation-where-pre-offset 0) '(haskell-indentation-where-pre-offset 0)
'(haskell-tags-on-save t)
'(js-indent-level 2) '(js-indent-level 2)
'(line-move-visual nil)
'(markdown-command "pandoc -t html") '(markdown-command "pandoc -t html")
'(package-selected-packages '(package-selected-packages
(quote (quote
(purescript-mode markdown-mode+ ssh-agency dash yaml-mode restart-emacs markdown-mode magit helm haml-mode form-feed dashboard))) (image+ company flycheck lsp-haskell forge frames-only-mode projectile lsp-ui lsp-mode purescript-mode markdown-mode+ ssh-agency dash yaml-mode restart-emacs markdown-mode magit helm haml-mode form-feed dashboard)))
'(projectile-mode t nil (projectile))
'(projectile-project-search-path (quote ("~/git/")))
'(purescript-mode-hook (quote (turn-on-purescript-indentation)) t) '(purescript-mode-hook (quote (turn-on-purescript-indentation)) t)
'(sgml-basic-offset 1)) '(sgml-basic-offset 1)
'(temp-buffer-resize-mode nil)
'(vc-follow-symlinks nil)
'(window-combination-resize t))
(menu-bar-mode -1) (menu-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
@ -83,6 +92,8 @@
(global-set-key (kbd "C-c f") 'flyckeck-next-error) (global-set-key (kbd "C-c f") 'flyckeck-next-error)
(global-set-key (kbd "C-c b") 'flycheck-prev-error) (global-set-key (kbd "C-c b") 'flycheck-prev-error)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(projectile-mode)
;;;; Dashboard ;;;; Dashboard

View file

@ -4,3 +4,7 @@
[core] [core]
excludesfile = /home/fredefox/.config/git/ignore excludesfile = /home/fredefox/.config/git/ignore
editor = emacs -nw editor = emacs -nw
[github]
user = fredefox
[gitlab]
user = fredefox

View file

@ -50,3 +50,5 @@ alias gp="git add -p"
# source $HOME/.config/gf/config # source $HOME/.config/gf/config
alias ide='ghcid -c "stack ghci --test --ghci-options=-fno-break-on-exception --ghci-options=-fno-break-on-error --ghci-options=-v1 --ghci-options=-ferror-spans --ghci-options=-j"' alias ide='ghcid -c "stack ghci --test --ghci-options=-fno-break-on-exception --ghci-options=-fno-break-on-error --ghci-options=-v1 --ghci-options=-ferror-spans --ghci-options=-j"'
export PAGER="less -FX" export PAGER="less -FX"
# perhaps just use .selected_editor for this?
export EDITOR='emacsclient -c'