update
This commit is contained in:
parent
214a38c447
commit
7e82dc0641
1 changed files with 42 additions and 14 deletions
38
init.el
38
init.el
|
@ -73,6 +73,14 @@
|
||||||
kept-old-versions 2
|
kept-old-versions 2
|
||||||
version-control t) ; use versioned backups
|
version-control t) ; use versioned backups
|
||||||
|
|
||||||
|
;; Setting up unicode
|
||||||
|
(setq set-language-environment "UTF-8"
|
||||||
|
selection-coding-system 'utf-8-unix
|
||||||
|
prefer-coding-system 'utf-8-unix
|
||||||
|
set-buffer-file-coding-system 'utf-8-unix
|
||||||
|
universal-coding-system-argument 'utf-8-unix
|
||||||
|
revert-buffer-with-coding-system 'utf-8-unix)
|
||||||
|
|
||||||
;; Settings keymap
|
;; Settings keymap
|
||||||
:bind (("C-x t <right>" . tab-bar-switch-to-next-tab)
|
:bind (("C-x t <right>" . tab-bar-switch-to-next-tab)
|
||||||
("C-x t <left>" . tab-bar-switch-to-prev-tab)
|
("C-x t <left>" . tab-bar-switch-to-prev-tab)
|
||||||
|
@ -275,10 +283,27 @@
|
||||||
orderless-style-dispatchers (list #'+orderless-consult-dispatch
|
orderless-style-dispatchers (list #'+orderless-consult-dispatch
|
||||||
#'orderless-affix-dispatch)))
|
#'orderless-affix-dispatch)))
|
||||||
|
|
||||||
|
(use-package magit
|
||||||
|
:ensure t
|
||||||
|
:bind(("C-c g" . magit-dispatch)
|
||||||
|
("C-c f". magit-file-dispatch)))
|
||||||
|
|
||||||
|
(use-package d-mode
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
|
(use-package sdlang-mode
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
(use-package glsl-mode
|
(use-package glsl-mode
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
(use-package company-glsl
|
(use-package company-glsl
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(when (executable-find "glslangValidator")
|
||||||
|
(add-to-list 'company-backends 'company-glsl)))
|
||||||
|
|
||||||
|
(use-package company-dcd
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
(use-package company
|
(use-package company
|
||||||
|
@ -287,7 +312,7 @@
|
||||||
:hook
|
:hook
|
||||||
((c-mode . company-mode)
|
((c-mode . company-mode)
|
||||||
(glsl-mode . company-mode)
|
(glsl-mode . company-mode)
|
||||||
(d-mode . company-mode))
|
(d-mode . company-dcd-mode))
|
||||||
:custom
|
:custom
|
||||||
(company-idle-delay 0.01))
|
(company-idle-delay 0.01))
|
||||||
|
|
||||||
|
@ -296,6 +321,10 @@
|
||||||
:ensure t
|
:ensure t
|
||||||
:init (global-flycheck-mode))
|
:init (global-flycheck-mode))
|
||||||
|
|
||||||
|
(use-package flycheck-dmd-dub
|
||||||
|
:ensure t
|
||||||
|
:hook (d-mode . flycheck-dmd-dub-set-variables))
|
||||||
|
|
||||||
;; (use-package flycheck-eglot
|
;; (use-package flycheck-eglot
|
||||||
;; :ensure t
|
;; :ensure t
|
||||||
;; :after (flycheck eglot))
|
;; :after (flycheck eglot))
|
||||||
|
@ -321,9 +350,8 @@
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
:bind(("C-S-c C-S-c" . mc/edit-lines)
|
:bind(("C-S-c C-S-c" . mc/edit-lines)
|
||||||
("C->" . mc/mark-next-like-this)
|
("C-S-c >" . mc/mark-next-like-this)
|
||||||
("C-<" . mc/mark-previous-like-this)
|
("C-S-c <" . mc/mark-previous-like-this)))
|
||||||
("C-S-c C-<" . mc/mark-previous-like-this-word)))
|
|
||||||
(use-package json-mode
|
(use-package json-mode
|
||||||
:custom (js-indent-line 4))
|
:custom (js-indent-line 4))
|
||||||
|
|
||||||
|
@ -345,7 +373,7 @@
|
||||||
'(inhibit-startup-screen t)
|
'(inhibit-startup-screen t)
|
||||||
'(menu-bar-mode nil)
|
'(menu-bar-mode nil)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(company-glsl glsl-mode multiple-cursors markdown-mode d-mode flycheck tree-sitter-langs tree-sitter company consult orderless vertico gruvbox-theme))
|
'(sdlang-mode company-dcd flycheck-dmd-dub magit company-glsl glsl-mode multiple-cursors markdown-mode d-mode flycheck tree-sitter-langs tree-sitter company consult orderless vertico gruvbox-theme))
|
||||||
'(recentf-mode t)
|
'(recentf-mode t)
|
||||||
'(tab-bar-mode t)
|
'(tab-bar-mode t)
|
||||||
'(tab-stop-list nil)
|
'(tab-stop-list nil)
|
||||||
|
|
Loading…
Add table
Reference in a new issue