Below you will find pages that utilize the taxonomy term “doom”
Posts
A Note On X Where X = "Making Evil Mode Not Awkward With Zsh Completion In Doom Emacs Vterm"
Set pt value to pos fix awkward completion behavior in vterm.
(defun vterm-goto-char (pos) "Set point to POSITION for vterm. The return value is `t'when point moved successfully. It will reset to original position if it can't move there." (when (and vterm--term (vterm-cursor-in-command-buffer-p) (vterm-cursor-in-command-buffer-p pos)) (let ((moved t) (origin-point (point)) pt cursor-pos succ) (vterm-reset-cursor-point) ;; Anak: this line cause weird behavior with auto completion (setq cursor-pos (point)) ;; (setq pt cursor-pos) ;; Anak commented out this line (setq pt pos) ;; Anak added this line and completion in vterm works better.
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
Must Read before running "Doom upgrade"!!!!!!
Doom discord announces important update and fixes. This is where you should take a look first before attempting to pull remote commits that are ahead of your local commits.
Doom emacs has only 1 branch. It used to have 2 main branch master and develop branch, but Henrik give up on develop branch because, I assume, its too much work to make develop branch stable before merging to master. For this reason, instead of merging develop branch to master branch.
Posts
Keybinding In Doom Emacs
Doom Emacs has its own keybinding system. A more accurate explaination is
Doom Emacs keybinding system is a wrapper over evil mode such that it is smoothly compatible with Emacs.
If you use Evil mode without Emacs configuration framework such as Spacemacs or Doom Emacs, it is frustrating to know if your keybinding is setup properly and whether it will always work as expected in any circumstances. A common point of failure is when your keybinding is overwritten by some packages.
Posts
Using terminals in Doom Emacs.
To open multiple terminal, a neat trick is to rename file buffer that terminal is opened 1.
To open file from terminal, one can just M-x find-file in the terminal buffer.
stackoverflow: More than one emacs terminal ↩︎
Posts
X Implementation Where X = Doom Emacs's +lookup/ Command.
I was trying to figure out +lookup/definition that open in other window. In one of the issue, Henrik 1 mention that some lookup backend (As an example, xref is a built in backend for lookup) are asynchronous and there is no standardized mechanism to talk to them to see whether the command runs successfully 2.
lets call this new command +lookup/definition-other-window Current possible solutions are
ignore validation step to make sure that the command runs succesfully.
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) .