[emacs] Add file-string function for my email signature

This commit is contained in:
Sebastian Schulze 2021-03-30 12:24:58 +02:00
parent 624f20bf09
commit 5fdf467cda
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@
(after! forge
(add-to-list 'forge-alist '({{- range .git.forges }}"{{.}}" {{ end }}forge-gitlab-repository)))
(defun bascht/file-string (file)
"Read the contents of a file and return as a string."
(with-current-buffer (find-file-noselect file)
(buffer-string)))
(setq org-link-abbrev-alist
'({{- range .bookmarks -}}
("{{ .name }}" . "{{ .url }}")