Browse Source

Enabled Which-Key and trying to make LSP work with C-l

master
Julio Biason 4 years ago
parent
commit
231eb9379e
  1. 29
      emacs.d/init.el

29
emacs.d/init.el

@ -41,7 +41,18 @@
:ensure t :ensure t
:bind (("\C-cl" . org-store-link) :bind (("\C-cl" . org-store-link)
("\C-ca" . org-agenda) ("\C-ca" . org-agenda)
("\C-cb" . org-iswtichb))) ("\C-cb" . org-iswtichb))
:init (add-hook 'org-mode-hook 'turn-on-auto-fill)
:config
(setq org-clock-persist 'history)
(setq org-todo-keywords '((sequence "TODO" "WORKING" "WAITING" "|" "DONE")))
(org-clock-persistence-insinuate))
;; Which key shows commands after the prefix
(use-package which-key
:ensure t
:config
(which-key-mode))
;; LanguageServer ;; LanguageServer
(use-package lsp-mode (use-package lsp-mode
@ -49,8 +60,12 @@
:hook ((python-mode . lsp) :hook ((python-mode . lsp)
(rust-mode . lsp)) (rust-mode . lsp))
:commands lsp :commands lsp
:config (setq lsp-enable-indentation t :init (global-unset-key "\C-l")
lsp-enable-on-type-formatting t)) :config
(setq lsp-enable-indentation t
lsp-enable-on-type-formatting t
lsp-keymap-prefix "C-l")
(add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration))
(use-package lsp-ui (use-package lsp-ui
:commands lsp-ui-mode :commands lsp-ui-mode
@ -84,10 +99,10 @@
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history) (define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)
) )
;; powerline ;; doom-modeline
(use-package powerline (use-package doom-modeline
:ensure t :ensure t
:config (powerline-center-theme)) :init (doom-modeline-mode 1))
;; colorschemes ;; colorschemes
(use-package doom-themes (use-package doom-themes
@ -115,7 +130,7 @@
(diff-hl-margin-mode 1) (diff-hl-margin-mode 1)
(diff-hl-flydiff-mode 1) (diff-hl-flydiff-mode 1)
;; install editorconfig ;; editorconfig
(use-package editorconfig (use-package editorconfig
:ensure t :ensure t
:config (editorconfig-mode 1)) :config (editorconfig-mode 1))

Loading…
Cancel
Save