feature/file-templates: update header line in doom templates
This commit is contained in:
parent
540e74a6aa
commit
78fe91ce10
4 changed files with 10 additions and 3 deletions
7
modules/feature/file-templates/autoload.el
Normal file
7
modules/feature/file-templates/autoload.el
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
;;; feature/file-templates/autoload.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +file-templates-get-short-path ()
|
||||||
|
"TODO"
|
||||||
|
(when (string-match "/modules/\\(.+\\)$" buffer-file-truename)
|
||||||
|
(match-string 1 buffer-file-truename)))
|
|
@ -1,3 +1,3 @@
|
||||||
;;; `(file-relative-name buffer-file-truename doom-modules-dir)` -*- lexical-binding: t; -*-
|
;;; `(+file-templates-get-short-path)` -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
$0
|
$0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; `(file-relative-name buffer-file-truename doom-modules-dir)`
|
;;; `(+file-templates-get-short-path)`
|
||||||
|
|
||||||
$0
|
$0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; `(file-relative-name buffer-file-truename doom-modules-dir)`
|
;;; `(+file-templates-get-short-path)`
|
||||||
|
|
||||||
$0
|
$0
|
Loading…
Add table
Add a link
Reference in a new issue