feat: Add keybinding stubs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user