mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
Compare commits
4 commits
7994829041
...
c36a49ec94
| Author | SHA1 | Date | |
|---|---|---|---|
| c36a49ec94 | |||
|
|
8161901924 | ||
|
|
2c999fae13 | ||
|
|
3b87d606ed |
5 changed files with 30 additions and 6 deletions
|
|
@ -101,6 +101,13 @@
|
||||||
. ((no-delete-other-windows . t)
|
. ((no-delete-other-windows . t)
|
||||||
(dedicated . t)))))
|
(dedicated . t)))))
|
||||||
|
|
||||||
|
(add-to-list 'display-buffer-alist
|
||||||
|
`("*org-roam*"
|
||||||
|
display-buffer-in-side-window
|
||||||
|
(side . left)
|
||||||
|
(select . t)
|
||||||
|
(window-width . 85)))
|
||||||
|
|
||||||
;; (pop display-buffer-alist)
|
;; (pop display-buffer-alist)
|
||||||
#+end_src
|
#+end_src
|
||||||
* Tramp configuration
|
* Tramp configuration
|
||||||
|
|
|
||||||
|
|
@ -42,19 +42,26 @@
|
||||||
(file-name-sans-extension)))
|
(file-name-sans-extension)))
|
||||||
(file-name-directory fname)))
|
(file-name-directory fname)))
|
||||||
|
|
||||||
(defun ll/dump-extract-command (fname)
|
(defun ll/dump-extract-command-flags (fname)
|
||||||
(with-current-buffer (find-file-noselect fname)
|
(with-current-buffer (find-file-noselect fname)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(re-search-forward "^[^#]")
|
(re-search-forward
|
||||||
(kill-ring-save (point-at-bol) (point-at-eol))
|
(rx line-start (not "#")
|
||||||
(current-kill 0))))
|
(group "\"" (+? nonl) "\"")
|
||||||
|
(group (+ nonl))
|
||||||
|
line-end))
|
||||||
|
(match-string 2))))
|
||||||
|
|
||||||
(defun ll/act-on-llvm-dump-file (fname)
|
(defun ll/act-on-llvm-dump-file (fname)
|
||||||
(let* ((action (aml/read-action-map ll/dump-file-action-map))
|
(let* ((action (aml/read-action-map ll/dump-file-action-map))
|
||||||
(command (ll/dump-extract-command (ll/dump-to-sh-file fname))))
|
(command-flags (ll/dump-extract-command-flags (ll/dump-to-sh-file fname)))
|
||||||
|
(clang (lls/prompt-tool "clang$")))
|
||||||
(compilation-start
|
(compilation-start
|
||||||
(concat command " -S -o -")
|
(concat
|
||||||
|
(when (y-or-n-p "Would you like to `rr record`? ")
|
||||||
|
"rr record ")
|
||||||
|
clang command-flags " -S -o -")
|
||||||
'asm-mode
|
'asm-mode
|
||||||
`(lambda (_)
|
`(lambda (_)
|
||||||
,(format "*%s*" fname)))))
|
,(format "*%s*" fname)))))
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@
|
||||||
`(orderless-match-face-3 ((t :foreground "#f0ce43" :background "#555555")))
|
`(orderless-match-face-3 ((t :foreground "#f0ce43" :background "#555555")))
|
||||||
|
|
||||||
'(org-todo ((t (:foreground "Pink" :bold t))))
|
'(org-todo ((t (:foreground "Pink" :bold t))))
|
||||||
|
'(org-agenda-date-weekend ((t (:foreground "orange" :bold t :inherit org-agenda-structure))))
|
||||||
|
|
||||||
'(opr/STUFF-todo-face ((t :foreground "goldenrod")))
|
'(opr/STUFF-todo-face ((t :foreground "goldenrod")))
|
||||||
'(opr/FUTURE-todo-face ((t :foreground "medium spring green")))
|
'(opr/FUTURE-todo-face ((t :foreground "medium spring green")))
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
(custom-theme-set-faces
|
(custom-theme-set-faces
|
||||||
'light-default
|
'light-default
|
||||||
|
|
||||||
|
'(default ((t (:foreground "#000000" :background "#FFFFFF"))))
|
||||||
'(org-todo ((t :foreground "Red1" :bold t)))
|
'(org-todo ((t :foreground "Red1" :bold t)))
|
||||||
|
|
||||||
`(rainbow-delimiters-depth-1-face ((t :foreground "#000000")))
|
`(rainbow-delimiters-depth-1-face ((t :foreground "#000000")))
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,14 @@
|
||||||
(require 'bisect-mode)
|
(require 'bisect-mode)
|
||||||
(require 'deadgrep-rejump-mode)
|
(require 'deadgrep-rejump-mode)
|
||||||
|
|
||||||
|
(use-package editorconfig
|
||||||
|
:config
|
||||||
|
(editorconfig-mode 1)
|
||||||
|
|
||||||
|
(advice-add #'editorconfig-set-trailing-ws
|
||||||
|
:override
|
||||||
|
#'ignore))
|
||||||
|
|
||||||
(put 'magit-log-mode 'magit-log-default-arguments
|
(put 'magit-log-mode 'magit-log-default-arguments
|
||||||
'("--graph" "-n64" "--decorate"))
|
'("--graph" "-n64" "--decorate"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue