Skip to content

Commit

Permalink
Merge remote-tracking branch 'emacs-exordium/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Oct 10, 2024
2 parents ebff697 + 5c3b653 commit ff19127
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI Tests

on:
workflow_dispatch:
pull_request:
paths-ignore:
- '**.md'
Expand Down
12 changes: 7 additions & 5 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ Each element of the list is in the same form as in `package-pinned-packages'."
(add-to-list 'package-archives
(cons "gnu" exordium-gnu-package-repo) t))

(setq package-user-dir (concat "~/.emacs.d/elpa-" emacs-version))
(setq package-user-dir
(locate-user-emacs-file (concat "elpa-" emacs-version)))

(when (fboundp 'native-comp-available-p)
(setq package-native-compile (native-comp-available-p)))
Expand Down Expand Up @@ -180,15 +181,16 @@ Each element of the list is in the same form as in `package-pinned-packages'."
(update-package pkg has-refreshed)))

;; - Some packages (i.e., magit, forge) require seq-2.24.
;; - Emacs-29 is delivered with seq-2.23.
;; - Emacs-29.1 is delivered with seq-2.23.
;; - Other packages (i.e., compat) require seq-2.23.
;; - When only magit is installed it requires compat which requires seq-2.23 -> seq is not upgraded
;; - When only forge is installed is requires magit and compat which requires seq-2.23 -> seq is not upgraded
;; - When magit is installed followed by installation of forge seq is upgraded to seq-2.24 -> this fails
;; Force installing the freshest version of seq with errors suppressed:
(let (debug-on-error)
;; this assumes `package-refresh-contents has been called'
(package-install (car (alist-get 'seq package-archive-contents))))
(when (version< emacs-version "29.2")
(let (debug-on-error)
;; this assumes `package-refresh-contents has been called'
(package-install (car (alist-get 'seq package-archive-contents)))))

;;; Path for "require"

Expand Down
9 changes: 8 additions & 1 deletion modules/init-cpp.el
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@
;;; Highlight dead code between "#if 0" and "#endif"
(add-hook 'c-mode-common-hook 'cpp-highlight-dead-code-hook)
(when exordium-treesit-modes-enable
(add-hook 'c-ts--mode-common-hook 'cpp-highlight-dead-code-hook))
(progn
(add-hook 'c-ts-mode-hook #'(lambda () (run-hooks 'c-mode-common-hook)))
(add-hook 'c++-ts-mode-hook #'(lambda () (run-hooks 'c-mode-common-hook)))
(add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))
(add-to-list 'major-mode-remap-alist '(c++-mode . c++-ts-mode))
(add-to-list 'major-mode-remap-alist
'(c-or-c++-mode . c-or-c++-ts-mode))))


;;; Switch between .h <--> .cpp <--> t.cpp

Expand Down

0 comments on commit ff19127

Please sign in to comment.