dotfiles
radian
Our great sponsors
dotfiles | radian | |
---|---|---|
1 | 4 | |
9 | 483 | |
- | 1.2% | |
2.5 | 6.7 | |
2 days ago | about 2 months ago | |
Shell | Emacs Lisp | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dotfiles
radian
- Whose user init have you found helpful?
-
Help with nested macros needed
(defvar test--var1 nil) ;; From https://github.com/raxod502/radian/blob/cb1dda7c8a697b2d6e3b2683805df6a085aed1c7/emacs/radian.el#L194 (defmacro my-when-compiletime (cond &rest body) "Like `when', but COND is evaluated at compile time. BODY is only compiled if COND evaluates to non-nil." (declare (indent 1)) (when (eval cond) (macroexp-progn body))) (defmacro my-log (s &rest args) "Log to *Messages*." `(when t (message (concat (propertize "the value is: " 'face 'font-lock-comment-face) (when (bound-and-true-p test--var1) (propertize (format "[%s/%s] " (substring (symbol-name (car test--var1)) 1) (cdr test--var1)) 'face 'warning)) ,s) ,@args))) ;; input should be an unquoted list containing like (:a b c) and c can be and ;; often is nil. The variable f take is included here for completeness but does ;; not do anything. (defmacro my-macro (input &rest body) (let ((c (car input)) (m (car (cdr input))) (f (cdr (cdr input)))) `(my-when-compiletime t (let ((test--var1 `(,,c . ,',m))) (message "test--var1 is %s" test--var1) (my-log "We are in my-macro") ,@body)))) ;; This works as expected (my-macro (:a b) (my-log "%s" test--var1)) ;; => test--var1 is (:a . b) ;; => the value is: [a/b] We are in my-macro ;; => the value is: [a/b] (:a . b) ;; => #("the value is: [a/b] (:a . b)" 0 14 (face font-lock-comment-face) 14 20 (face warning)) ;; This not (my-macro (:a b) (defun test-fun1 () (my-log "hey")) (run-with-timer 0.1 nil #'test-fun1)) ;; => test--var1 is (:a . b) ;; => the value is: [a/b] We are in my-macro ;; => [nil 24719 64999 224627 nil test-fun1 nil nil 964000] ;; => the value is: hey
- radian: 🍉 Dotfiles that marry elegance and practicality.
-
This is the Way
You might also want to check out Radian if you haven't seen that one yet. I haven't used it, but have read most of the code. It strikes me as a very Emacs-y "starter kit".
What are some alternatives?
Singularis - My System Configuration ⚙️
.emacs.d - M-EMACS, a full-featured GNU Emacs configuration distribution
dotfiles - My dotfiles for Bash/Zsh, Vim/Neovim, Doom Emacs, tmux, Git, terminal emulators, JupyterLab, aria2, mpv, Nix and Homebrew
dotfiles - My personal dotfiles (emacs, zsh, vim, i3)
dotfiles - My dotfiles: macOS, OpenBSD, Linux. Setup: git init; git remote add github https://github.com/rollcat/dotfiles; git pull github master
cfg - My Unix-like OS's dotfiles...
magit-todos - Show source files' TODOs (and FIXMEs, etc) in Magit status buffer
vim-lastplace - A vim / nvim plugin that intelligently reopens files at your last edit position.
Dotfiles - There's no place like ~/
dotfiles - 👾 My dotfiles: vimrc, zshrc...
help - HELP Enables Literate Programming