Skip to content

Commit d8af5dc

Browse files
authored
Merge pull request #83 from djgoku/fixes
Emacs improvements and CI fix for emacs-overlay builds
2 parents 02d0914 + c96d981 commit d8af5dc

3 files changed

Lines changed: 17 additions & 10 deletions

File tree

.github/workflows/emacs-overlay.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,13 @@ jobs:
6666
- name: Build Emacs
6767
working-directory: emacs-overlay
6868
run: mise run build
69+
push:
70+
if: needs.update.outputs.changes_exist == 'true'
71+
needs: [update, build]
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v6
75+
with:
76+
ref: ${{ inputs.build-branch || 'build-emacs-overlay' }}
77+
- name: Push updated flake.lock
78+
run: git push

emacs/init.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
(setq ripgrep--extra-args " -g !.venv -g !.pre-commit -g !.terraform")
135135
(setq johnny--maybe-ripgrep-executable nil)
136136
(save-place-mode 1)
137+
(column-number-mode 1)
137138
:bind (;; Better than default - from /u/zck
138139
("M-c" . capitalize-dwim)
139140
("M-l" . downcase-dwim)

emacs/main.el

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ Magit's default uses magit-read-string-ns which rejects whitespace."
9090
(magit-status full-path)
9191
;; user-error aborts the clone after opening magit-status
9292
(user-error "Repository already cloned at %s, opened magit-status" full-path))
93-
(list repo
94-
(read-directory-name "Clone to: " default-dir nil nil repo-name)
95-
(transient-args 'magit-clone)))))
93+
(magit-clone-internal repo full-path nil)
94+
(user-error "Cloning %s to %s" repo full-path))))
9695

9796
;; :override intentionally replaces the original — adds existing-repo detection.
9897
(advice-add 'magit-clone-read-args :override #'johnny5-magit-clone-maybe-status)
@@ -143,8 +142,6 @@ Return nil if test execution fails."
143142
(use-package string-inflection)
144143
;;; powerthesaurus
145144
(use-package powerthesaurus)
146-
;;; nix-mode
147-
(use-package nix-mode)
148145
;;; markdown-mode
149146
(use-package markdown-mode)
150147
;;; json-mode
@@ -548,17 +545,16 @@ After downloading, restart eglot in affected buffers to pick up changes."
548545
(setq-default eglot-workspace-configuration
549546
`(:yaml (:schemaStore (:enable t)
550547
:validate t)))))
551-
;; (with-eval-after-load 'eglot
552-
;; (add-to-list 'eglot-server-programs
553-
;; `((elixir-ts-mode heex-ts-mode elixir-mode) .
554-
;; ("nextls" "--stdio=true" :initializationOptions (:experimental (:completions (:enable t)))))))
548+
(with-eval-after-load 'eglot
549+
(add-to-list 'eglot-server-programs `((elixir-mode elixir-ts-mode heex-ts-mode) . ,(eglot-alternatives
550+
'(("expert" "--stdio")
551+
("elixir-ls"))))))
555552
:hook ((elixir-mode . eglot-ensure)
556553
(elixir-ts-mode . eglot-ensure)
557554
(heex-ts-mode . eglot-ensure)
558555
(json-ts-mode . eglot-ensure)
559556
(python-mode . eglot-ensure)
560557
(python-ts-mode . eglot-ensure)
561-
(nix-mode . eglot-ensure)
562558
(terraform-mode . eglot-ensure)
563559
(toml-ts-mode . eglot-ensure)
564560
(typescript-ts-mode . eglot-ensure)

0 commit comments

Comments
 (0)