Below you will find pages that utilize the taxonomy term “implementation”
Posts
Implementing X where X = "Custom Doom Emacs's Scratch Buffer"
I was trying to implement my own scratch buffer.I learned alot about Emacs’s way of programming. I gained a new mental debugging tool.
The main function I started to modify is doom/open-scratch-buffer. The functions deals with opening scratch buffer when current-buffer is inside and outside of a projectile’s project.
doom/open-scratch-buffer does the following
check if scratch will open in the same buffer or as pop up buffer Then, it passes arguments to (doom-scratch-buffer &optional DONT-RESTORE-P MODE DIRECTORY PROJECT-NAME).
Posts
Elisp Code to Find List of Top N MELPA Authors
;; https://www.reddit.com/r/emacs/comments/t9qs6h/need_help_listing_all_emacs_super_developers/ (require 'url) (require 'cl-lib) (defvar url-http-end-of-headers) (defvar smelpa-json nil "Melpa recipe JSON data.") (defun smelpa-json () "Return an alist of MELPA recipe metadata." (or smelpa-json (setq smelpa-json (with-current-buffer (url-retrieve-synchronously "https://melpa.org/archive.json") (goto-char url-http-end-of-headers) (json-read))))) (defun smelpa-packages-by-author () "Return alist of form: ((author . (package-url...)))." (let (authors) (cl-loop for (_ . data) in (smelpa-json) do (when-let ((props (alist-get 'props data)) (url (alist-get 'url props)) (parsed (url-generic-parse-url url)) (filename (url-filename parsed)) (tokens (split-string filename "/" 'omit-nulls)) (author (intern (car tokens)))) (if (alist-get author authors) (push url (alist-get author authors)) (push (cons author (list url)) authors)))) authors)) (defun smelpa-most-published-authors (n) "Return alist of form ((author .
Posts
X implementation where X = executing org babel block in Doom Emacs.
Editing History [2022-07-06 Wed] Last edit is on [2022-07-07 Thu] This article investigates what is executed when one presses enter to execute org babel source block in Doom Emacs.
Pressing enter in org-babel block will execute +org/dwim-at-point, see code below for reference. First, it checks if point is on a button. Then, it proceeds to assign evaluated output of org-element-context and org-element-type.
(+org/dwim-at-point *optional ARG) .