-
Notifications
You must be signed in to change notification settings - Fork 6
/
+code.el
52 lines (40 loc) · 1.22 KB
/
+code.el
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
;;; +code.el -*- lexical-binding: t; -*-
;;
;;; LSP
(with-eval-after-load 'lsp-mode
(setq lsp-ui-sideline-enable nil
lsp-ui-sideline-ignore-duplicate t
lsp-ui-doc-enable nil
lsp-ui-doc-include-signature nil
lsp-ui-doc-header nil
lsp-file-watch-threshold 150000)
(add-to-list 'lsp-file-watch-ignored "build"))
;;
;; DAP
(with-eval-after-load 'dap-mode
(set-company-backend! 'dap-ui-repl-mode 'company-dap-ui-repl)
(add-hook 'dap-ui-repl-mode-hook #'+dap/company-h)
(add-hook 'dap-stopped-hook #'+dap/show-debug-windows-h)
(add-hook 'dap-terminated-hook #'+dap/hide-debug-windows-h))
;;
;;; Python
(after! python
(set-docsets! 'python-mode "Pandas"))
(map! :map inferior-python-mode-map
:desc "Search history" "C-s" #'comint-history-isearch-backward-regexp)
;;
;; C++
(add-to-list '+format-on-save-enabled-modes 'c++-mode t)
;;
;;; Emacs Lisp
(add-hook 'ielm-mode-hook 'lispy-mode)
(setq doom-scratch-buffer-major-mode 'emacs-lisp-mode)
;;
;; Guile
(after! geiser
(setq-default geiser-scheme-implementation 'guile))
;;
;; Matlab
(add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode))
(add-hook 'octave-mode-hook (lambda ()
(flycheck-mode -1)))