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
:bind (("\C-cl" . org-store-link)
("\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
(use-package lsp-mode
@ -49,8 +60,12 @@
:hook ((python-mode . lsp)
(rust-mode . lsp))
:commands lsp
:config (setq lsp-enable-indentation t
lsp-enable-on-type-formatting t))
:init (global-unset-key "\C-l")
: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
:commands lsp-ui-mode
@ -84,10 +99,10 @@
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)
)
;; powerline
(use-package powerline
;; doom-modeline
(use-package doom-modeline
:ensure t
:config (powerline-center-theme))
:init (doom-modeline-mode 1))
;; colorschemes
(use-package doom-themes
@ -115,7 +130,7 @@
(diff-hl-margin-mode 1)
(diff-hl-flydiff-mode 1)
;; install editorconfig
;; editorconfig
(use-package editorconfig
:ensure t
:config (editorconfig-mode 1))

Loading…
Cancel
Save