aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile1
-rw-r--r--emacs/.emacs.d/init.org4
-rw-r--r--glide/.config/glide/glide.ts15
-rw-r--r--oni/packages/emacs.scm4
4 files changed, 20 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index ab90390..efedcf2 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -177,6 +177,7 @@ surfingkeys/dist/punt.js: surfingkeys/punt.ts surfingkeys/home.ts
rincewind: \
emacs/.emacs.d/init.el \
wezterm/.config/wezterm/init.lua
+ touch $@
## Diamond Interactive MacOS
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 56b4971..0ae3ac9 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -834,7 +834,7 @@ Highlight diffs in the fringe.
#+begin_src emacs-lisp
(use-package rainbow-delimiters
- :hook (php-mode emacs-lisp-mode))
+ :hook (prog-mode))
#+end_src
* Mixed Pitch Mode
@@ -1007,7 +1007,7 @@ The only way to edit lispy languages. This turns Emacs into a structural editor
#+begin_src emacs-lisp
(use-package paredit
- :hook (emacs-lisp-mode fennel-mode clojure-mode lisp-mode))
+ :hook (lisp-data-mode fennel-mode clojure-mode))
#+end_src
* Yasnippet
diff --git a/glide/.config/glide/glide.ts b/glide/.config/glide/glide.ts
index 48430db..b7dfa61 100644
--- a/glide/.config/glide/glide.ts
+++ b/glide/.config/glide/glide.ts
@@ -436,3 +436,18 @@ glide.autocmds.create("UrlEnter", {
'geo.provider.network.url',
'data:application/json,{"location": {"lat": 45.542805, "lng": -122.7369563}, "accuracy": 100.0}');
});
+
+glide.autocmds.create("UrlEnter", /git(\.sr\.ht|hub\.com)\/.*?\/commit\//, async () => {
+ glide.buf.keymaps.set(
+ "normal",
+ "yc",
+ () => {
+ const parts = glide.ctx.url.pathname.split('/');
+
+ if (parts[parts.length - 2] === 'commit') {
+ navigator.clipboard.writeText(parts[parts.length - 1]);
+ } else {
+ console.error('no deal', parts[parts.length - 2]);
+ }
+ });
+});
diff --git a/oni/packages/emacs.scm b/oni/packages/emacs.scm
index 553a954..56a7bf4 100644
--- a/oni/packages/emacs.scm
+++ b/oni/packages/emacs.scm
@@ -610,7 +610,7 @@ dot-separated path form like @code{jobs.build.docker} and
(license license:gpl3))))
(define-public emacs-yoshi-theme
- (let ((commit "0a015799c062c79735f6d7ce762f770859aa8658")
+ (let ((commit "1268c11f9278743693044e179cfa3328c4b16a49")
(revision "0"))
(package
(name "emacs-yoshi-theme")
@@ -623,7 +623,7 @@ dot-separated path form like @code{jobs.build.docker} and
(method git-fetch)
(file-name (git-file-name name version))
(sha256
- (base32 "18b1kzdipy2kvlkmhvhnxjq84zwa5623n9zz05z1m8278a1zjprn"))))
+ (base32 "1gfar1h1q8qd638hijwm2fz9ygr8wph6wdvmck2wm6ddxsrbhz20"))))
(build-system emacs-build-system)
(arguments
`(#:include '("icons/*" . ,%default-include)))