Compare commits

..
3 Commits
Author SHA1 Message Date
Riyyi 50d8e3f455 Emacs: Fix YASnippet expansion in insert mode 2023-12-08 23:30:45 +01:00
Riyyi 5e7058563f Emacs: Update Elpaca bootstrap to 0.6 2023-11-27 11:42:17 +01:00
Riyyi 5bc947db3d Scripts: Play video from clipboard 2023-11-27 11:32:03 +01:00
5 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -463,7 +463,7 @@
;;; YASnippet
(elpaca-setup yasnippet
(:autoload yas-insert-snippet)
(:autoload yas-expand yas-insert-snippet)
(setq yas-snippet-dirs (list (expand-file-name "snippets" dot-emacs-dir)))
(setq yas-prompt-functions '(yas-completing-prompt))
(:when-loaded
+2 -2
View File
@@ -9,13 +9,13 @@
;; -----------------------------------------
;; Elpaca bootstrap
(defvar elpaca-installer-version 0.5)
(defvar elpaca-installer-version 0.6)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
(defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git"
:ref nil
:files (:defaults (:exclude "extensions"))
:files (:defaults "elpaca-test.el" (:exclude "extensions"))
:build (:not elpaca--activate-package)))
(let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
(build (expand-file-name "elpaca/" elpaca-builds-directory))
+3 -1
View File
@@ -59,7 +59,9 @@ Vim equivalence: <C-D>"
"Shift line right, retains cursor position.
Vim equivalence: <Tab>"
(interactive)
(insert "\t"))
(when (not (yas-expand))
(insert "\t")))
(defun dot/evil-visual-shift-left ()
"Shift visual selection left, retains the selection.
+1 -1
View File
@@ -521,7 +521,7 @@
"t w" '(visual-line-mode :which-key "Toggle line wrapping")
;; Update packages
"U" '(elpaca-update-all :which-key "Update packages")
"U" '(elpaca-merge-all :which-key "Update packages")
;; Version control
"v" '(:ignore t :which-key "git")
+8 -4
View File
@@ -1,6 +1,6 @@
#!/bin/sh
# Depends: GNU getopt, mpv, socat, streamlink
# Depends: GNU getopt, mpv, socat, streamlink, xclip
SOCK="/tmp/umpv-fifo"
@@ -256,7 +256,11 @@ elif [ $shuffleOption -eq 1 ]; then
elif [ $queueOption -eq 1 ]; then
queue "$*"
else
for url in "$@"; do
play "$url"
done
if [ "$*" = "" ]; then
play "$(xclip -o)"
else
for url in "$@"; do
play "$url"
done
fi
fi