Add plantuml and ansi-color in compilation-mode support
This commit is contained in:
parent
abbe628206
commit
7ee100b6c2
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,5 +12,6 @@ tramp
|
|||||||
url
|
url
|
||||||
session*
|
session*
|
||||||
eww-bookmarks
|
eww-bookmarks
|
||||||
|
.cache
|
||||||
\#*
|
\#*
|
||||||
*~
|
*~
|
||||||
|
@ -23,10 +23,12 @@
|
|||||||
fic-mode
|
fic-mode
|
||||||
function-args
|
function-args
|
||||||
flycheck
|
flycheck
|
||||||
|
flycheck-plantuml
|
||||||
flycheck-pos-tip
|
flycheck-pos-tip
|
||||||
flycheck-rust
|
flycheck-rust
|
||||||
highlight-numbers
|
highlight-numbers
|
||||||
highlight-symbol
|
highlight-symbol
|
||||||
|
plantuml-mode
|
||||||
rust-mode
|
rust-mode
|
||||||
sr-speedbar
|
sr-speedbar
|
||||||
stickyfunc-enhance
|
stickyfunc-enhance
|
||||||
@ -207,6 +209,18 @@
|
|||||||
:bind
|
:bind
|
||||||
(("M-s M-s" . swiper)))
|
(("M-s M-s" . swiper)))
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; plantuml-mode
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package plantuml-mode
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.pu\\'" . plantuml-mode))
|
||||||
|
(setq-default plantuml-jar-path "~/.emacs.d/plantuml.jar")
|
||||||
|
:config
|
||||||
|
(require 'flycheck-plantuml))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Configure Vala environment.
|
;; Configure Vala environment.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
@ -290,7 +304,15 @@
|
|||||||
;; Just kill old compile processes before starting the new one.
|
;; Just kill old compile processes before starting the new one.
|
||||||
compilation-always-kill t
|
compilation-always-kill t
|
||||||
;; Automatically scroll to first error.
|
;; Automatically scroll to first error.
|
||||||
compilation-scroll-output 'first-error))
|
compilation-scroll-output 'first-error)
|
||||||
|
|
||||||
|
;; ansi-colors
|
||||||
|
(ignore-errors
|
||||||
|
(require 'ansi-color)
|
||||||
|
(defun my-colorize-compilation-buffer ()
|
||||||
|
(when (eq major-mode 'compilation-mode)
|
||||||
|
(ansi-color-apply-on-region compilation-filter-start (point-max))))
|
||||||
|
(add-hook 'compilation-filter-hook 'my-colorize-compilation-buffer)))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Makefile settings.
|
;; Makefile settings.
|
||||||
|
BIN
plantuml.jar
Normal file
BIN
plantuml.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user