feat: Add keybinding stubs

This commit is contained in:
Madeleine Sydney
2025-01-12 12:51:38 -07:00
parent 1ca55bc377
commit 7683acd80a
5 changed files with 169 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
;;; syd-prelude.el -*- lexical-binding: t; -*-
;; (eval-when-compile (require 'cl-lib))
(eval-when-compile (require 'cl-lib))
(defvar syd-data-dir
(or (getenv "EMACS_DATA_DIR")
@@ -11,6 +11,14 @@
(or (getenv "EMACS_CACHE_DIR")
(error "Need $EMACS_CACHE_DIR")))
(cl-defmacro syd-define-stub
(name &key (desc "implement me!") interactive)
(let ((todo (format "%s: TODO: %s" name desc)))
`(defun ,name (&rest args)
,@(if interactive (list '(interactive)) nil)
,todo
(error ,todo))))
;; `on.el' provies a collection of utility hooks and functions ported from Doom
;; Emacs. The hooks make it easier to speed up Emacs startup by providing
;; finer-grained control of the timing at which packages are loaded.