Compare commits

...

4 commits

Author SHA1 Message Date
c36a49ec94 Show org-roam buffer on left side 2025-09-08 07:25:00 -05:00
Benson Chu
8161901924 Fixup some theme things 2025-09-05 14:40:44 -05:00
Benson Chu
2c999fae13 More convenience for rr 2025-09-04 13:09:58 -05:00
Benson Chu
3b87d606ed Editorconfig for work 2025-09-04 13:09:14 -05:00
5 changed files with 30 additions and 6 deletions

View file

@ -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

View file

@ -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)))))

View file

@ -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")))

View file

@ -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")))

View file

@ -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"))