mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feature/file-templates: update header line in doom templates
This commit is contained in:
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
|
Reference in New Issue
Block a user