Update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -27,6 +27,7 @@
|
|||||||
.dap-breakpoints
|
.dap-breakpoints
|
||||||
.emacs.desktop
|
.emacs.desktop
|
||||||
.emacs.desktop.lock
|
.emacs.desktop.lock
|
||||||
|
.mc-lists.el
|
||||||
.org-id-locations
|
.org-id-locations
|
||||||
.projectile
|
.projectile
|
||||||
.tern-port
|
.tern-port
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
|
|
||||||
(use-package subword
|
(use-package subword
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:hook (elpaca-after-init . global-subword-mode))
|
:diminish
|
||||||
|
:hook (prog-mode minibuffer-setup))
|
||||||
|
|
||||||
(use-package paren
|
(use-package paren
|
||||||
:ensure nil
|
:ensure nil
|
||||||
@@ -93,4 +94,32 @@
|
|||||||
scroll-margin 0)
|
scroll-margin 0)
|
||||||
:hook (elpaca-after-init . ultra-scroll-mode))
|
:hook (elpaca-after-init . ultra-scroll-mode))
|
||||||
|
|
||||||
|
(use-package helpful
|
||||||
|
:bind (([remap describe-function] . helpful-callable)
|
||||||
|
([remap describe-command] . helpful-command)
|
||||||
|
([remap describe-variable] . helpful-variable)
|
||||||
|
([remap describe-key] . helpful-key)
|
||||||
|
([remap describe-symbol] . helpful-symbol)
|
||||||
|
:map emacs-lisp-mode-map
|
||||||
|
("C-c C-d" . helpful-at-point)
|
||||||
|
:map lisp-interaction-mode-map
|
||||||
|
("C-c C-d" . helpful-at-point)
|
||||||
|
:map helpful-mode-map
|
||||||
|
("r" . remove-hook-at-point))
|
||||||
|
:hook (helpful-mode . cursor-sensor-mode) ; for remove-advice button
|
||||||
|
:init
|
||||||
|
(with-no-warnings
|
||||||
|
(with-eval-after-load 'apropos
|
||||||
|
;; patch apropos buttons to call helpful instead of help
|
||||||
|
(dolist (fun-bt '(apropos-function apropos-macro apropos-command))
|
||||||
|
(button-type-put
|
||||||
|
fun-bt 'action
|
||||||
|
(lambda (button)
|
||||||
|
(helpful-callable (button-get button 'apropos-symbol)))))
|
||||||
|
(dolist (var-bt '(apropos-variable apropos-user-option))
|
||||||
|
(button-type-put
|
||||||
|
var-bt 'action
|
||||||
|
(lambda (button)
|
||||||
|
(helpful-variable (button-get button 'apropos-symbol))))))))
|
||||||
|
|
||||||
(provide 'init-better-default)
|
(provide 'init-better-default)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
:map mc/keymap
|
:map mc/keymap
|
||||||
("C-|" . mc/vertical-align-with-space))
|
("C-|" . mc/vertical-align-with-space))
|
||||||
:pretty-hydra
|
:pretty-hydra
|
||||||
((:color amaranth :quit-key ("q" "C-g"))
|
((:color amaranth :quit-key ("q" "C-g") :hint nil)
|
||||||
("Up"
|
("Up"
|
||||||
(("p" mc/mark-previous-like-this "prev")
|
(("p" mc/mark-previous-like-this "prev")
|
||||||
("P" mc/skip-to-previous-like-this "skip")
|
("P" mc/skip-to-previous-like-this "skip")
|
||||||
@@ -76,4 +76,8 @@
|
|||||||
(use-package smart-region
|
(use-package smart-region
|
||||||
:hook (after-init . smart-region-on))
|
:hook (after-init . smart-region-on))
|
||||||
|
|
||||||
|
(use-package mwim
|
||||||
|
:bind (([remap move-beginning-of-line] . mwim-beginning)
|
||||||
|
([remap move-end-of-line] . mwim-end)))
|
||||||
|
|
||||||
(provide 'init-edit)
|
(provide 'init-edit)
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
:defer
|
:defer
|
||||||
:ensure `(org :repo "https://code.tecosaur.net/tec/org-mode.git/"
|
:ensure `(org :repo "https://code.tecosaur.net/tec/org-mode.git/"
|
||||||
:branch "dev")
|
:branch "dev")
|
||||||
:hook (org-mode . org-indent-mode)
|
|
||||||
:hook (org-mode . org-cdlatex-mode)
|
:hook (org-mode . org-cdlatex-mode)
|
||||||
|
:hook (org-mode . org-indent-mode)
|
||||||
|
|
||||||
:pretty-hydra
|
:pretty-hydra
|
||||||
;; See `org-structure-template-alist'
|
;; See `org-structure-template-alist'
|
||||||
@@ -21,10 +21,9 @@
|
|||||||
("C" (hot-expand "<C") "comment")
|
("C" (hot-expand "<C") "comment")
|
||||||
("x" (hot-expand "<e") "example")
|
("x" (hot-expand "<e") "example")
|
||||||
("E" (hot-expand "<E") "export")
|
("E" (hot-expand "<E") "export")
|
||||||
("h" (hot-expand "<h") "html")
|
|
||||||
("l" (hot-expand "<l") "latex")
|
("l" (hot-expand "<l") "latex")
|
||||||
("n" (hot-expand "<n") "note")
|
("n" (hot-expand "<n") "note")
|
||||||
("o" (hot-expand "<q") "quote")
|
("O" (hot-expand "<q") "quote")
|
||||||
("v" (hot-expand "<v") "verse"))
|
("v" (hot-expand "<v") "verse"))
|
||||||
"Head"
|
"Head"
|
||||||
(("i" (hot-expand "<i") "index")
|
(("i" (hot-expand "<i") "index")
|
||||||
@@ -40,6 +39,8 @@
|
|||||||
("w" (hot-expand "<s" "powershell") "powershell")
|
("w" (hot-expand "<s" "powershell") "powershell")
|
||||||
("r" (hot-expand "<s" "ruby") "ruby")
|
("r" (hot-expand "<s" "ruby") "ruby")
|
||||||
("S" (hot-expand "<s" "sh") "sh")
|
("S" (hot-expand "<s" "sh") "sh")
|
||||||
|
("h" (hot-expand "<s" "haskell") "haskell")
|
||||||
|
("o" (hot-expand "<s" "ocaml") "ocaml")
|
||||||
("g" (hot-expand "<s" "go :imports '\(\"fmt\"\)") "golang"))
|
("g" (hot-expand "<s" "go :imports '\(\"fmt\"\)") "golang"))
|
||||||
"Misc"
|
"Misc"
|
||||||
(("m" (hot-expand "<s" "mermaid :file chart.png") "mermaid")
|
(("m" (hot-expand "<s" "mermaid :file chart.png") "mermaid")
|
||||||
@@ -62,9 +63,9 @@
|
|||||||
"Expand org template.
|
"Expand org template.
|
||||||
|
|
||||||
STR is a structure template string recognised by org like <s. MOD is a
|
STR is a structure template string recognised by org like <s. MOD is a
|
||||||
string with additional parameters to add the begin line of the
|
string with additional parameters to add the begin line of the structure
|
||||||
structure element. HEADER string includes more parameters that are
|
element. HEADER string includes more parameters that are prepended to
|
||||||
prepended to the element after the #+HEADER: tag."
|
the element after the #+HEADER: tag."
|
||||||
(let (text)
|
(let (text)
|
||||||
(when (region-active-p)
|
(when (region-active-p)
|
||||||
(setq text (buffer-substring (region-beginning) (region-end)))
|
(setq text (buffer-substring (region-beginning) (region-end)))
|
||||||
@@ -85,8 +86,9 @@ prepended to the element after the #+HEADER: tag."
|
|||||||
(setq org-directory "~/org/")
|
(setq org-directory "~/org/")
|
||||||
(add-to-list 'org-agenda-files "~/org")
|
(add-to-list 'org-agenda-files "~/org")
|
||||||
(setq org-highlight-latex-and-related '(native latex entities))
|
(setq org-highlight-latex-and-related '(native latex entities))
|
||||||
(setq org-pretty-entities t)
|
(setq org-startup-indented t)
|
||||||
(setq org-pretty-entities-include-sub-superscripts nil)
|
(setq org-pretty-entities t
|
||||||
|
org-pretty-entities-include-sub-superscripts nil)
|
||||||
|
|
||||||
(add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t)))
|
(add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user