blob: 1d284f58dc7ceccbef4012fa8b6973b06991a075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
(use-package haskell-mode
:ensure t
:config
(setq haskell-interactive-popup-errors nil))
;; CPP Mode
(use-package emacs
:config
(setq-default c-basic-offset 4))
;; Haskell
(use-package emacs
:config
(add-to-list 'exec-path "$HOME/.ghcup/bin")
(add-to-list 'exec-path "/home/bard/.cabal/bin")
(add-to-list 'exec-path "/home/bard/.local/bin")
(add-to-list 'exec-path "/home/bard/opt/")
(let ((bard/ghcup-path (expand-file-name "~/.ghcup/bin")))
(setenv "PATH" (concat bard/ghcup-path ":" (getenv "PATH")))
(add-to-list 'exec-path bard/ghcup-path)))
;; Lisp
(use-package sly
:ensure t
:config
(setq inferior-lisp-program (executable-find "sbcl")))
(use-package geiser
:ensure t)
(use-package geiser-gauche
:ensure t)
;; parens packages
(use-package c++-mode
:bind
(:map c++-mode-map
("C-c C-c" . project-compile)))
(use-package flycheck
:ensure t
:config
(global-flycheck-mode t))
(use-package ggtags
:ensure t
:config
(add-hook 'c-mode-common-hook
(lambda ()
(when (derived-mode-p 'c-mode 'c++-mode 'java-mode)
(ggtags-mode 1)))))
(use-package compile
:ensure nil
:defer 2
:config
(require 'bard-compile)
(setq compilation-scroll-output t
compilation-auto-jump-to-first-error t)
)
;; Version control
(define-key global-map (kbd "C-c g") #'magit-status)
(setq magit-repository-directories
'(("~/Code" . 1)
("~/Repositories" . 1)
("~/dotfiles-stow" . 0)
("~/.emacs.d" . 0)
("~/Pictures/wallpaper" . 0)))
;; (use-package ada-mode
;; :load-path "~/.emacs.d/old-ada"
;; :bind
;; (:map ada-mode-map
;; ("C-j" . dired-jump)))
(provide 'bard-emacs-prog)
|