Revise comments
This commit is contained in:
parent
ea01e850e4
commit
88dd15e204
4 changed files with 6 additions and 8 deletions
|
@ -161,7 +161,7 @@ directives. By default, this only recognizes C directives.")
|
||||||
(advice-add #'evil-window-split :override #'+evil-window-split-a)
|
(advice-add #'evil-window-split :override #'+evil-window-split-a)
|
||||||
(advice-add #'evil-window-vsplit :override #'+evil-window-vsplit-a)
|
(advice-add #'evil-window-vsplit :override #'+evil-window-vsplit-a)
|
||||||
|
|
||||||
;; Make o/O continue comments (see `+evil-want-o/O-to-continue-comments')
|
;; Make o/O continue comments (see `+evil-want-o/O-to-continue-comments' to disable)
|
||||||
(advice-add #'evil-open-above :around #'+evil--insert-newline-above-and-respect-comments-a)
|
(advice-add #'evil-open-above :around #'+evil--insert-newline-above-and-respect-comments-a)
|
||||||
(advice-add #'evil-open-below :around #'+evil--insert-newline-below-and-respect-comments-a)
|
(advice-add #'evil-open-below :around #'+evil--insert-newline-below-and-respect-comments-a)
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,9 @@
|
||||||
(setq sly-mrepl-history-file-name (concat doom-cache-dir "sly-mrepl-history")
|
(setq sly-mrepl-history-file-name (concat doom-cache-dir "sly-mrepl-history")
|
||||||
sly-kill-without-query-p t
|
sly-kill-without-query-p t
|
||||||
sly-net-coding-system 'utf-8-unix
|
sly-net-coding-system 'utf-8-unix
|
||||||
;; Doom defaults to non-fuzzy search, because it is slower and less
|
;; Doom defaults to non-fuzzy search, because it is faster and more
|
||||||
;; precise. Change this to `sly-flex-completions' for fuzzy completion
|
;; precise (but requires more keystrokes). Change this to
|
||||||
|
;; `sly-flex-completions' for fuzzy completion
|
||||||
sly-complete-symbol-function 'sly-simple-completions)
|
sly-complete-symbol-function 'sly-simple-completions)
|
||||||
|
|
||||||
(set-popup-rules!
|
(set-popup-rules!
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
(when (featurep! :checkers spell)
|
(when (featurep! :checkers spell)
|
||||||
(add-hook 'tuareg-mode-local-vars-hook #'flyspell-prog-mode))
|
(add-hook 'tuareg-mode-local-vars-hook #'flyspell-prog-mode))
|
||||||
|
|
||||||
;; Indent new lines in a comment block, and optionally prefix new comment
|
|
||||||
;; lines with an asterix. See `+ocaml-prefix-comments-with-asterisk'.
|
|
||||||
(setq-hook! 'tuareg-mode-hook
|
(setq-hook! 'tuareg-mode-hook
|
||||||
comment-line-break-function #'+ocaml/comment-indent-new-line)
|
comment-line-break-function #'+ocaml/comment-indent-new-line)
|
||||||
|
|
||||||
|
|
|
@ -78,11 +78,10 @@ stored in `persp-save-dir'.")
|
||||||
(let (persp-before-switch-functions)
|
(let (persp-before-switch-functions)
|
||||||
;; The default perspective persp-mode creates is special and doesn't
|
;; The default perspective persp-mode creates is special and doesn't
|
||||||
;; represent a real persp object, so buffers can't really be assigned
|
;; represent a real persp object, so buffers can't really be assigned
|
||||||
;; to it, among other quirks. We hide the nil persp...
|
;; to it, among other quirks, so we get rid of it...
|
||||||
(when (equal (car persp-names-cache) persp-nil-name)
|
(when (equal (car persp-names-cache) persp-nil-name)
|
||||||
(pop persp-names-cache))
|
(pop persp-names-cache))
|
||||||
;; ...and create a *real* main workspace to fill this role, and hide
|
;; ...and create a *real* main workspace to fill this role.
|
||||||
;; the nil perspective.
|
|
||||||
(unless (or (persp-get-by-name +workspaces-main)
|
(unless (or (persp-get-by-name +workspaces-main)
|
||||||
;; Start from 2 b/c persp-mode counts the nil workspace
|
;; Start from 2 b/c persp-mode counts the nil workspace
|
||||||
(> (hash-table-count *persp-hash*) 2))
|
(> (hash-table-count *persp-hash*) 2))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue