aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/lisp/et-utils.el
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-12-02 16:58:34 -0800
committerEugene Triguba <hello@eugenetriguba.com>2026-12-02 16:58:34 -0800
commitf96c71b8a4be79d495ceb0ed5950fd018728edc7 (patch)
tree7e1374939d7bbd955f9559dbea4053f499796104 /.emacs.d/lisp/et-utils.el
parentAdd openbsd dotfiles (diff)
downloaddotfiles-f96c71b8a4be79d495ceb0ed5950fd018728edc7.zip
Remove emacs
Diffstat (limited to '.emacs.d/lisp/et-utils.el')
-rw-r--r--.emacs.d/lisp/et-utils.el41
1 files changed, 0 insertions, 41 deletions
diff --git a/.emacs.d/lisp/et-utils.el b/.emacs.d/lisp/et-utils.el
deleted file mode 100644
index 17a0e77..0000000
--- a/.emacs.d/lisp/et-utils.el
+++ /dev/null
@@ -1,41 +0,0 @@
-;;; et-utils.el --- Utilities for my Emacs configuration -*- lexical-binding: t; -*-
-;;; Commentary:
-;;; Code:
-
-(defun et-is-desktop-p ()
- "Check if the current system is my desktop system."
- (string-match-p "desktop" (system-name)))
-
-(defun et-insert-elisp-template (summary)
- "Insert a elisp template into the buffer.
-
-SUMMARY will be inserted into the header docstring
-as the file summary."
- (interactive (list (read-string "summary: ")))
- (let ((move-to-center-of-code-section (lambda () (forward-line -3)))
- (get-current-file-name (lambda () (file-name-sans-extension (file-name-nondirectory buffer-file-name))))
- (get-module-template (lambda (module-name summary)
- (format ";;; %s.el --- %s -*- lexical-binding: t; -*-
-;;; Commentary:
-;;; Code:
-
-
-
-(provide '%s)
-;;; %s.el ends here" module-name summary module-name module-name))))
- (if (not (buffer-file-name))
- (message "No file visited.")
- (progn
- (insert (funcall get-module-template (funcall get-current-file-name) summary))
- (funcall move-to-center-of-code-section)))))
-
-(defun open-init-file ()
- "Open the Emacs init file."
- (interactive)
- (find-file user-init-file)
- (cd (file-name-directory user-init-file)))
-
-(global-set-key (kbd "C-c i") 'open-init-file)
-
-(provide 'et-utils)
-;;; et-utils.el ends here