This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun quote-region (from to char) | |
"Surround region in quotes or brackets" | |
(interactive "r\ncChar:") | |
(let ((to (+ to 1)) | |
(chars (case char | |
(?\( (list "(" ")")) | |
(?\[ (list "[" "]")) | |
(?\{ (list "{" "}")) | |
(?\< (list "<" ">")) | |
(t (list char char))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
tmp=$(mktemp -d) | |
cd "$tmp" | |
git init | |
git config user.email abc@example.com | |
echo file a > a.txt | |
echo file b > b.txt |
OlderNewer