Compare commits

...

6 commits

Author SHA1 Message Date
bd4620da83 use-package 2026-04-12 17:15:28 -05:00
Benson Chu
5c5921fa40 Current symbol 2026-04-12 17:14:44 -05:00
Benson Chu
3bd3428a4b Reorder includes 2026-04-12 17:14:44 -05:00
Benson Chu
a49e214ed8 Renames 2026-04-12 16:59:15 -05:00
1455d6609b Compilation mode locus should use the same window 2026-04-12 10:55:55 -05:00
587e7d2662 Hack directory 2026-04-12 10:55:34 -05:00
13 changed files with 64 additions and 11 deletions

View file

@ -95,7 +95,7 @@
;; (y-or-n-p "Should I start LSP? ")) ;; (y-or-n-p "Should I start LSP? "))
) )
(when (string-match-p "llvm-project" project-root) (when (string-match-p "llvm-project" project-root)
(lls/ensure-initialized)) (comp-dev/ensure-initialized))
(lsp)))) (lsp))))
:config :config

View file

@ -0,0 +1,53 @@
;;; comp-mode-locus-override.el --- -*- lexical-binding: t -*-
;; Copyright (C) 2026 Benson Chu
;; Author: Benson Chu <bensonchu457@gmail.com>
;; Created: [2026-04-12 10:41]
;; This file is not part of GNU Emacs
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;; Code:
(defvar compile-locus-display-window nil)
(make-variable-buffer-local 'compile-locus-display-window)
(defun my/compile-locus-some-window (buffer)
`(lambda (buffer alist)
(if (and compile-locus-display-window
(window-live-p compile-locus-display-window))
compile-locus-display-window
(setq
compile-locus-display-window
(let ((win (window-in-direction 'left (get-buffer-window ,buffer))))
(split-window-horizontally nil win))))))
(defun my/compilation-goto-locus (orig &rest args)
(save-selected-window
(let ((display-buffer-overriding-action
`(display-buffer-use-some-window
(inhibit-same-window . t)
(some-window . ,(my/compile-locus-some-window (current-buffer))))))
(apply orig args))))
(advice-add #'compilation-goto-locus
:around
#'my/compilation-goto-locus)
(provide 'comp-mode-locus-override)
;;; comp-mode-locus-override.el ends here

View file

@ -130,7 +130,7 @@
(defun comp-dev/ensure-initialized () (defun comp-dev/ensure-initialized ()
(when (not (comp-dev/initialized?)) (when (not (comp-dev/initialized?))
(if (not (functionp lls/target-init-fun)) (if (null comp-dev/init-functions)
(error "Please register an init function for llvm") (error "Please register an init function for llvm")
(comp-dev/initialize)))) (comp-dev/initialize))))

View file

@ -25,6 +25,7 @@
;;; Code: ;;; Code:
(require 'anaphora) (require 'anaphora)
(require 'llvm-buffer-chain) (require 'llvm-buffer-chain)
(require 'comp-mode-locus-override)
(define-minor-mode compilation-minor-mode (define-minor-mode compilation-minor-mode
"Toggle Compilation minor mode. "Toggle Compilation minor mode.

View file

@ -25,7 +25,8 @@
;;; Code: ;;; Code:
(require 'cl-lib) (require 'cl-lib)
(require 'dash) (require 'dash)
(require 'vterm) (require 'use-package)
(use-package vterm)
(require 'tab-bar) (require 'tab-bar)
(defclass multi-vterm-tab-info () (defclass multi-vterm-tab-info ()

View file

@ -31,5 +31,7 @@
(list sep (car x))) (list sep (car x)))
'(matches)))))) '(matches))))))
(rx-define symbol (+ (or (syntax word) (syntax symbol))))
(provide 'my-rx-forms) (provide 'my-rx-forms)
;;; my-rx-forms.el ends here ;;; my-rx-forms.el ends here

@ -1 +1 @@
Subproject commit 034ae31a6faa5c70b22d647c63f495b63d4bcee7 Subproject commit 32b922200e98ef706c00a475c759770bca4ee40a

View file

@ -27,19 +27,15 @@
(require 'work-org-stuff) (require 'work-org-stuff)
(require 'work-commentor) (require 'work-commentor)
(require 'work-asm-config) (require 'work-asm-config)
(require 'ti-keymap)
(require 'ti-comp-dev)
(require 'ti-tools-backup)
(require 'argo-fastsim-dump-mode)
(require 'machine-scheduler-debug-mode)
(require 'frame-restore) (require 'frame-restore)
(require 'ti-config)
(require 'bisect-mode) (require 'bisect-mode)
(require 'deadgrep-rejump-mode) (require 'deadgrep-rejump-mode)
(require 'ti-asm)
(require 'work-mail) (require 'work-mail)
(require 'ti-config)
(use-package editorconfig (use-package editorconfig
:config :config
(editorconfig-mode 1) (editorconfig-mode 1)