June 8th 2026 - Things I Worked On
Fixed line highlighting bug
The line highlighting was broken in Tektite because the calculation depended on real written lines not visual lines. The solution was to create a mirror that wraps exactly how the text wraps in the textarea and a fake marker that we use to calculate how far we are from the top and use that to apply the highlighting. Opened an issue here and submitted a fix here.
Creating the mirror:
let lineHeight = Number.parseFloat(style.lineHeight); if (Number.isNaN(lineHeight)) { lineHeight = fontSize * 1.65; } const mirror = document.createElement("div"); mirror.style.cssText = ` position: absolute; visibility: hidden; left: -9999px; top: 0; box-sizing: border-box; width: ${els.editor.offsetWidth}px; font: ${style.font}; line-height: ${style.lineHeight}; padding: ${style.padding}; border: ${style.border}; letter-spacing: ${style.letterSpacing}; tab-size: ${style.tabSize}; white-space: pre-wrap; overflow-wrap: break-word; overflow: hidden; `;
Adding text and fake marker to the mirror:
const before = els.editor.value.slice(0, cursor); const after = els.editor.value.slice(cursor); mirror.appendChild(document.createTextNode(before)); const marker = document.createElement("span"); marker.textContent = "|"; mirror.appendChild(marker); mirror.appendChild(document.createTextNode(after)); document.body.appendChild(mirror);
Then we can calculate the distance from the top of the editor pane to the marker to determine where the highlighting will start. We also remove the mirror when we're done:
const top = marker.offsetTop - els.editor.scrollTop; mirror.remove();
Configured dired
Disable Evil Mode
I want to use the default keybindings when in dired-mode so I disabled evil mode.
(evil-set-initial-state 'dired-mode 'emacs)
Display File Settings
I customized the flags for the ls command that dired uses.
(setq dired-listing-switches "-lah")
Added shell to babel languages
(org-babel-do-load-languages 'org-babel-load-languages '((java . t) (python . t) (shell . t)))