mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
More programming stuff
This commit is contained in:
parent
7eacfa2c56
commit
5caeba9e60
3 changed files with 47 additions and 43 deletions
|
|
@ -279,6 +279,52 @@
|
|||
:config
|
||||
(slime-setup '(slime-fancy slime-asdf slime-company)))
|
||||
#+END_SRC
|
||||
** rust
|
||||
#+begin_src emacs-lisp
|
||||
(use-package cargo)
|
||||
(use-package rust-mode)
|
||||
(use-package rustic)
|
||||
#+end_src
|
||||
** golang
|
||||
#+begin_src emacs-lisp
|
||||
(use-package go-mode
|
||||
:hook (go-mode . (lambda ()
|
||||
(add-hook 'before-save-hook 'gofmt-before-save nil t)
|
||||
(setq indent-tabs-mode nil)))
|
||||
:config
|
||||
;; This is for lsp to work
|
||||
(add-to-list 'exec-path "~/go/bin/"))
|
||||
#+end_src
|
||||
** python
|
||||
#+begin_src emacs-lisp
|
||||
(use-package elpy)
|
||||
(elpy-enable)
|
||||
(use-package ein)
|
||||
(add-to-list 'exec-path
|
||||
"/home/benson/anaconda3/bin/")
|
||||
#+end_src
|
||||
** web stuff
|
||||
#+begin_src emacs-lisp
|
||||
(use-package web-mode
|
||||
:commands web-mode
|
||||
:init
|
||||
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.cshtml\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
|
||||
:config
|
||||
(setq web-mode-auto-close-style 2))
|
||||
|
||||
(use-package js2-mode
|
||||
:commands js2-mode
|
||||
:init
|
||||
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)))
|
||||
#+end_src
|
||||
* colorful compilation buffer
|
||||
#+begin_src emacs-lisp
|
||||
(require 'ansi-color)
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@
|
|||
;; Magit
|
||||
(use-package magit)
|
||||
(use-package magit-popup)
|
||||
(use-package magit-todos)
|
||||
(use-package magit-todos)
|
||||
(global-set-key (kbd "C-x g") 'magit-status)
|
||||
(global-set-key (kbd "C-x M-g") 'magit-dispatch)
|
||||
|
||||
|
|
|
|||
|
|
@ -168,44 +168,6 @@
|
|||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package rjsx-mode)
|
||||
#+END_SRC
|
||||
* Golang
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package go-mode)
|
||||
(add-hook 'go-mode-hook
|
||||
(lambda ()
|
||||
(add-hook 'before-save-hook 'gofmt-before-save nil t)
|
||||
(setq indent-tabs-mode nil)))
|
||||
;; This is for lsp to work
|
||||
(add-to-list 'exec-path "~/go/bin/")
|
||||
#+END_SRC
|
||||
* Elpy
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package elpy)
|
||||
(elpy-enable)
|
||||
#+END_SRC
|
||||
* EIN
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package ein)
|
||||
(add-to-list 'exec-path
|
||||
"/home/benson/anaconda3/bin/")
|
||||
#+END_SRC
|
||||
* Web-mode
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package web-mode
|
||||
:commands web-mode
|
||||
:init
|
||||
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.cshtml\\'" . web-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
|
||||
:config
|
||||
(setq web-mode-auto-close-style 2))
|
||||
#+END_SRC
|
||||
* Processing
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package processing-mode)
|
||||
|
|
@ -233,10 +195,6 @@
|
|||
(use-package indent-guide)
|
||||
;(indent-guide-global-mode)
|
||||
#+end_src
|
||||
* rust cargo
|
||||
#+begin_src emacs-lisp
|
||||
(use-package cargo)
|
||||
#+end_src
|
||||
* maven support
|
||||
#+begin_src emacs-lisp
|
||||
(use-package mvn)
|
||||
|
|
|
|||
Loading…
Reference in a new issue