General refactor & cleanup
This commit is contained in:
parent
bac73ec938
commit
6c4e048c23
9 changed files with 26 additions and 21 deletions
|
@ -292,9 +292,8 @@ the new algorithm is confusing, like in python or ruby."
|
|||
(global-evil-mc-mode +1)
|
||||
|
||||
;; Add custom commands to whitelisted commands
|
||||
(dolist (fn '(doom/deflate-space-maybe doom/inflate-space-maybe
|
||||
doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
|
||||
doom/backward-kill-to-bol-and-indent doom/newline-and-indent))
|
||||
(dolist (fn '(doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
|
||||
doom/backward-kill-to-bol-and-indent))
|
||||
(push (cons fn '((:default . evil-mc-execute-default-call)))
|
||||
evil-mc-custom-known-commands))
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
(def-package! csharp-mode :mode "\\.cs$")
|
||||
|
||||
(def-package! shader-mode :mode "\\.shader$") ; unity shaders
|
||||
|
||||
|
||||
(def-package! omnisharp
|
||||
:after csharp-mode
|
||||
|
@ -54,6 +56,3 @@
|
|||
:n "s" (λ! (omnisharp-unit-test "single"))
|
||||
:n "a" (λ! (omnisharp-unit-test "all")))))
|
||||
|
||||
|
||||
(def-package! shader-mode :mode "\\.shader$") ; unity shaders
|
||||
|
||||
|
|
|
@ -34,8 +34,7 @@
|
|||
:mode "/Dockerfile$")
|
||||
|
||||
|
||||
;; For ROM hacking or debugging
|
||||
(def-package! hexl
|
||||
(def-package! hexl ; For ROM hacking or debugging
|
||||
:mode ("\\.hex$" . hexl-mode)
|
||||
:mode ("\\.nes$" . hexl-mode))
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
;;; private/r/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +r/repl ()
|
||||
"Open the R REPL."
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
(def-package! tex-site
|
||||
:init
|
||||
;; Manually load the AUCTEX autoloads. This is normally done by package-initialize,
|
||||
;; ... which we do not use.
|
||||
;; Manually load the AUCTEX autoloads. This is normally done by
|
||||
;; package-initialize, ... which we do not use.
|
||||
(load "auctex.el" nil t t)
|
||||
(load "auctex-autoloads.el" nil t t)
|
||||
:config
|
||||
|
@ -38,7 +38,8 @@
|
|||
;; Use hidden directories for AUCTeX files.
|
||||
TeX-auto-local ".auctex-auto"
|
||||
TeX-style-local ".auctex-style"
|
||||
;; When correlating sources to rendered PDFs, don't start the emacs server
|
||||
;; When correlating sources to rendered PDFs, don't start the emacs
|
||||
;; server
|
||||
TeX-source-correlate-start-server nil
|
||||
TeX-source-correlate-mode t
|
||||
TeX-source-correlate-method 'synctex
|
||||
|
@ -74,7 +75,8 @@
|
|||
LaTeX-item-indent 0)
|
||||
:config
|
||||
(map! :map LaTeX-mode-map "C-j" nil)
|
||||
;; Do not prompt for Master files, this allows auto-insert to add templates to .tex files
|
||||
;; Do not prompt for Master files, this allows auto-insert to add templates
|
||||
;; to .tex files
|
||||
(add-hook! '(LaTeX-mode TeX-mode) '(lambda () (remove-hook 'find-file-hooks (car find-file-hooks) 'local)))
|
||||
;; Adding useful things for latex
|
||||
(add-hook! LaTeX-mode (LaTeX-math-mode) (TeX-source-correlate-mode)(TeX-global-PDF-mode t)
|
||||
|
@ -95,7 +97,8 @@
|
|||
(after! latex
|
||||
;; Use Okular is the user says so.
|
||||
(when (featurep! +okular)
|
||||
;; Configure Okular as viewer. Including a bug fix (https://bugs.kde.org/show_bug.cgi?id=373855)
|
||||
;; Configure Okular as viewer. Including a bug fix
|
||||
;; (https://bugs.kde.org/show_bug.cgi?id=373855)
|
||||
(add-to-list 'TeX-view-program-list
|
||||
'("Okular" ("okular --unique file:%o" (mode-io-correlate "#src:%n%a"))))
|
||||
(add-to-list 'TeX-view-program-selection
|
||||
|
@ -110,8 +113,9 @@
|
|||
|
||||
|
||||
(def-package! preview
|
||||
;; The preview package is currently broken with the latest AUCTeX version ("11.90.2.2017-07-25)
|
||||
;; ... and Ghostscript 9.22. It's now fixed in AUCTeX master, so we just have to wait.
|
||||
;; The preview package is currently broken with the latest AUCTeX version
|
||||
;; ("11.90.2.2017-07-25) ... and Ghostscript 9.22. It's now fixed in AUCTeX
|
||||
;; master, so we just have to wait.
|
||||
:init
|
||||
(progn
|
||||
(setq-default preview-scale 1.4
|
||||
|
@ -175,7 +179,8 @@
|
|||
"q" #'delete-window
|
||||
"k" (λ! (quit-window) (delete-window))))
|
||||
|
||||
;; Enable latexmk only if the user explicitly says so with the module flag '+latexmk'.
|
||||
;; Enable latexmk only if the user explicitly says so with the module flag
|
||||
;; '+latexmk'.
|
||||
(def-package! auctex-latexmk
|
||||
:when (featurep! +latexmk)
|
||||
:init
|
||||
|
@ -219,8 +224,8 @@
|
|||
:commands (company-auctex-init)
|
||||
:init
|
||||
;; We can't use the (set! :company-backend ...) because Auctex reports its
|
||||
;; major-mode as `latex-mode', but uses LaTeX-mode-hook for its mode, which
|
||||
;; is not anticipated by :company-backend (and shouldn't have to!)
|
||||
;; major-mode as `latex-mode', but uses LaTeX-mode-hook for its mode, which is
|
||||
;; not anticipated by :company-backend (and shouldn't have to!)
|
||||
(add-hook! LaTeX-mode
|
||||
(make-variable-buffer-local 'company-backends)
|
||||
(company-auctex-init)))
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
(def-package! markdown-mode
|
||||
:mode "/README$"
|
||||
:mode "\\.m\\(d\\|arkdown\\)$"
|
||||
:mode ("/README\\.md$" . gfm-mode)
|
||||
:mode "\\.m\\(d\\|arkdown\\)$"
|
||||
:init
|
||||
(setq markdown-enable-wiki-links t
|
||||
markdown-enable-math t
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
|
||||
;; Is built into Emacs 26+
|
||||
;; TODO don't add password-store to auth-sources?
|
||||
(if (require 'auth-store-pass nil t)
|
||||
(auth-source-pass-enable)
|
||||
(def-package! auth-password-store
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
|
||||
(def-setting! :rotate (modes &rest plist)
|
||||
"Declare :symbols, :words or :patterns that `rotate-text' will cycle through."
|
||||
"Declare :symbols, :words or :patterns (all lists of strings) that
|
||||
`rotate-text' will cycle through."
|
||||
(declare (indent 1))
|
||||
(let* ((modes (doom-enlist (doom-unquote modes)))
|
||||
(fn-name (intern (format "doom--rotate-%s" (mapconcat #'symbol-name modes "-")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue