emacs: add external package configurations
This commit is contained in:
parent
6747292dce
commit
acec37c252
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
(setq gc-cons-threshold 100000000)
|
(setq gc-cons-threshold 100000000)
|
||||||
(add-to-list 'load-path "~/.emacs.d/lisp/")
|
(add-to-list 'load-path "~/.emacs.d/lisp/")
|
||||||
(add-to-list 'load-path "~/git/d-ts-mode/")
|
|
||||||
|
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||||
|
@ -102,7 +101,6 @@
|
||||||
(sh-mode . bash-ts-mode)))
|
(sh-mode . bash-ts-mode)))
|
||||||
|
|
||||||
(package-install 'd-mode)
|
(package-install 'd-mode)
|
||||||
(add-to-list 'auto-mode-alist '("\\.di?\\'" . d-mode))
|
|
||||||
;; fix to make d-mode highlight primitive types properly
|
;; fix to make d-mode highlight primitive types properly
|
||||||
(font-lock-add-keywords 'd-mode
|
(font-lock-add-keywords 'd-mode
|
||||||
'(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Runtime\\|Thread\\)\\>" . 'font-lock-type-face)))
|
'(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Runtime\\|Thread\\)\\>" . 'font-lock-type-face)))
|
||||||
|
@ -298,7 +296,13 @@
|
||||||
smtpmail-smtp-service 465
|
smtpmail-smtp-service 465
|
||||||
smtpmail-stream-type 'ssl)
|
smtpmail-stream-type 'ssl)
|
||||||
|
|
||||||
|
;; other packages
|
||||||
|
(require 'esv)
|
||||||
|
(require 'phobos)
|
||||||
|
(setq phobos-browser "firefox")
|
||||||
|
|
||||||
|
(add-to-list 'load-path "~/git/d-ts-mode/")
|
||||||
|
(require 'd-ts-mode)
|
||||||
|
|
||||||
;; enable disabled commands
|
;; enable disabled commands
|
||||||
(put 'dired-find-alternate-file 'disabled nil)
|
(put 'dired-find-alternate-file 'disabled nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue