dev: updating from latest
This commit is contained in:
commit
1f966c2250
11 changed files with 64 additions and 46 deletions
|
@ -3,6 +3,11 @@
|
|||
#+created: October 11, 2019
|
||||
#+since: 2.0.0
|
||||
|
||||
#+begin_quote
|
||||
*This module is deprecated.* Changes upstream to Twitter's API has rendered
|
||||
twittering-mode non-functional, and there is no known alternative.
|
||||
#+end_quote
|
||||
|
||||
* Description :unfold:
|
||||
Enjoy twitter from emacs.
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ generate `completing-read' candidates."
|
|||
;;;###autoload
|
||||
(defun +default/diagnostics (&rest arg)
|
||||
"List diagnostics for the current buffer/project.
|
||||
If the the vertico and lsp modules are active, list lsp diagnostics for the
|
||||
If the vertico and lsp modules are active, list lsp diagnostics for the
|
||||
current project. Otherwise list them for the current buffer"
|
||||
(interactive)
|
||||
(cond ((and (modulep! :completion vertico)
|
||||
|
|
|
@ -116,7 +116,7 @@ the requested feature."
|
|||
Does nothing if `+format-with-lsp' is nil or the active server doesn't support
|
||||
the requested feature."
|
||||
(and +format-with-lsp
|
||||
(bound-and-true-p eglot-managed-mode)
|
||||
(bound-and-true-p eglot--managed-mode)
|
||||
(pcase op
|
||||
('buffer (if (eglot--server-capable :documentFormattingProvider)
|
||||
(always (eglot-format-buffer))))
|
||||
|
|
|
@ -280,7 +280,7 @@ mail retrieval/indexing, change the value of ~mu4e-update-interval~:
|
|||
You will get =No such file or directory, mu4e= errors if you don't run ~$ doom
|
||||
sync~ after installing =mu= through your package manager.
|
||||
|
||||
Some times the the ~mu~ package does not include ~mu4e~ (*cough Ubuntu*). if
|
||||
Some times the ~mu~ package does not include ~mu4e~ (*cough Ubuntu*). if
|
||||
that's the case you will need to [[https://github.com/djcb/mu][install]] it and add it to your ~load-path~ you
|
||||
can do that by:
|
||||
#+begin_src emacs-lisp
|
||||
|
|
|
@ -66,7 +66,7 @@ Intended to replace `lisp-outline-level'."
|
|||
(re-search-backward
|
||||
"\\_<:\\(?:\\sw\\|\\s_\\)+\\_>" ;; Find a keyword.
|
||||
doom-start 'noerror))
|
||||
(unless (looking-back "(")
|
||||
(unless (looking-back "(" (bol))
|
||||
(let ((kw-syntax (syntax-ppss)))
|
||||
(when (and (= (ppss-depth kw-syntax) doom-depth)
|
||||
(not (ppss-string-terminator kw-syntax))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
(defun +latex-indent-item-fn ()
|
||||
"Indent LaTeX \"itemize\",\"enumerate\", and \"description\" environments.
|
||||
|
||||
\"\\item\" is indented `LaTeX-indent-level' spaces relative to the the beginning
|
||||
\"\\item\" is indented `LaTeX-indent-level' spaces relative to the beginning
|
||||
of the environment.
|
||||
|
||||
See `LaTeX-indent-level-item-continuation' for the indentation strategy this
|
||||
|
|
|
@ -1368,7 +1368,7 @@ between the two."
|
|||
#'doom-disable-show-trailing-whitespace-h
|
||||
;; #'+org-enable-auto-reformat-tables-h
|
||||
;; #'+org-enable-auto-update-cookies-h
|
||||
#'+org-make-last-point-visible-h)
|
||||
)
|
||||
|
||||
(add-hook! 'org-load-hook
|
||||
#'+org-init-org-directory-h
|
||||
|
@ -1435,15 +1435,20 @@ between the two."
|
|||
:references #'+org-lookup-references-handler
|
||||
:documentation #'+org-lookup-documentation-handler)
|
||||
|
||||
;; HACK: Somehow, users/packages still find a way to modify tab-width in
|
||||
;; org-mode. Since org-mode treats a non-standerd tab-width as an error
|
||||
;; state, I use this hook to makes it much harder to change by accident.
|
||||
(add-hook! 'org-mode-hook
|
||||
;; HACK: Somehow, users/packages still find a way to modify tab-width in
|
||||
;; org-mode. Since org-mode treats a non-standerd tab-width as an error
|
||||
;; state, I use this hook to makes it much harder to change by accident.
|
||||
(add-hook! 'after-change-major-mode-hook :local
|
||||
;; The second check is necessary, in case of `org-edit-src-code' which
|
||||
;; clones a buffer and changes its major-mode.
|
||||
(when (derived-mode-p 'org-mode)
|
||||
(setq tab-width 8))))
|
||||
(setq tab-width 8)))
|
||||
|
||||
;; HACK: `save-place' can position the cursor in an invisible region. This
|
||||
;; makes it visible unless `org-inhibit-startup' or
|
||||
;; `org-inhibit-startup-visibility-stuff' is non-nil.
|
||||
(add-hook 'save-place-after-find-file-hook #'+org-make-last-point-visible-h nil t))
|
||||
|
||||
;; Save target buffer after archiving a node.
|
||||
(setq org-archive-subtree-save-file-p t)
|
||||
|
|
|
@ -16,14 +16,8 @@
|
|||
(setq eglot-sync-connect 1
|
||||
eglot-autoshutdown t
|
||||
eglot-send-changes-idle-time 0.5
|
||||
;; NOTE This setting disable the eglot-events-buffer enabling more
|
||||
;; consistent performance on long running emacs instance.
|
||||
;; Default is 2000000 lines. After each new event the whole buffer
|
||||
;; is pretty printed which causes steady performance decrease over time.
|
||||
;; CPU is spent on pretty priting and Emacs GC is put under high pressure.
|
||||
eglot-events-buffer-size 0
|
||||
;; NOTE We disable eglot-auto-display-help-buffer because :select t in
|
||||
;; its popup rule causes eglot to steal focus too often.
|
||||
;; NOTE: We disable eglot-auto-display-help-buffer because :select t in
|
||||
;; its popup rule causes eglot to steal focus too often.
|
||||
eglot-auto-display-help-buffer nil)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
|
@ -38,7 +32,14 @@
|
|||
:type-definition #'eglot-find-typeDefinition
|
||||
:documentation #'+eglot-lookup-documentation)
|
||||
|
||||
(add-to-list 'doom-debug-variables '(eglot-events-buffer-size . 2000000))
|
||||
;; NOTE: This setting disable the eglot-events-buffer enabling more consistent
|
||||
;; performance on long running emacs instance. Default is 2000000 lines.
|
||||
;; After each new event the whole buffer is pretty printed which causes
|
||||
;; steady performance decrease over time. CPU is spent on pretty priting and
|
||||
;; Emacs GC is put under high pressure.
|
||||
(cl-callf plist-put eglot-events-buffer-config :size 0)
|
||||
|
||||
(add-to-list 'doom-debug-variables '(eglot-events-buffer-config :size 2000000 :format full))
|
||||
|
||||
(defadvice! +lsp--defer-server-shutdown-a (fn &optional server)
|
||||
"Defer server shutdown for a few seconds.
|
||||
|
|
|
@ -84,6 +84,7 @@ This must be set before `treemacs' has loaded.")
|
|||
:after treemacs
|
||||
:config (treemacs-set-scope-type 'Perspectives))
|
||||
|
||||
|
||||
(use-package! lsp-treemacs
|
||||
:when (modulep! +lsp)
|
||||
:after (treemacs lsp))
|
||||
:after treemacs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue