This commit is contained in:
parent
08cc760f1c
commit
1de0b1131f
4 changed files with 12 additions and 3 deletions
|
|
@ -107,6 +107,9 @@
|
|||
;; Disable warning related to PATH on startup
|
||||
(defvar exec-path-from-shell-check-startup-files nil)
|
||||
|
||||
(eval-when-compile
|
||||
(declare-function exec-path-from-shell-initialize 'exec-path-from-shell))
|
||||
|
||||
;; Allow to execute path from shell
|
||||
(use-package exec-path-from-shell
|
||||
;; :if (memq window-system '(x mac ns))
|
||||
|
|
@ -114,7 +117,6 @@
|
|||
:defer t
|
||||
:hook ((elpaca-after-init . exec-path-from-shell-initialize))
|
||||
:config
|
||||
(declare-function exec-path-from-shell-initialize "exec-path-from-shell")
|
||||
(add-to-list 'exec-path "/usr/local/bin")
|
||||
(dolist (var '("DEFT_PATH"
|
||||
"LANG"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,11 @@
|
|||
;;; Global Language Server Protocol Config
|
||||
;;; Code:
|
||||
|
||||
(use-package eglot :ensure nil
|
||||
:config
|
||||
;; Use Ruby-Lsp instead of Solargraph
|
||||
(add-to-list 'eglot-server-programs '((ruby-mode ruby-ts-mode) "ruby-lsp")))
|
||||
|
||||
(use-package eldoc-box
|
||||
:ensure (:host github :repo "casouri/eldoc-box")
|
||||
:hook ((emacs-lisp-mode . eldoc-box-hover-at-point-mode)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ It is different than default font to keep it visually distinct.")
|
|||
|
||||
;; Require dash functions to be included:
|
||||
(eval-when-compile
|
||||
(declare-function -> "dash.el"))
|
||||
(declare-function -> 'dash))
|
||||
|
||||
(defconst icejam-font-height 14
|
||||
"Default height of then font.
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
(eval-when-compile
|
||||
(defvar icejam-language-transient-alist)
|
||||
(defvar eglot-server-programs)
|
||||
(defvar ruby-insert-encoding-magic-comment)
|
||||
(declare-function icejam-set-indent 'icejam-prog-mode)
|
||||
(declare-function icejam-set-eglot-capfs 'icejam-complete-at-point))
|
||||
|
||||
|
|
@ -21,7 +23,7 @@
|
|||
(add-to-list (make-local-variable 'flycheck-disabled-checkers) 'ruby-reek 'ruby-rubocop)
|
||||
|
||||
;; Do not insert magic encoding comment at the begining of each file
|
||||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
(setopt ruby-insert-encoding-magic-comment nil)
|
||||
|
||||
;; Start LSP
|
||||
(eglot-ensure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue