diff options
| author | 0xhenrique <[email protected]> | 2025-03-02 11:03:20 +0000 |
|---|---|---|
| committer | 0xhenrique <[email protected]> | 2025-03-02 11:03:20 +0000 |
| commit | 6a7930a8fc084563d35fad16c1858fbc6a3109c1 (patch) | |
| tree | 32dd6d7b4a5ac32f0960bbf201786c8f340a1fc9 /posts | |
| parent | 812e5862ee9f1b5e4e6f76c9c0eee9f73e3855fe (diff) | |
Update blog style and add some instruction in the README
Diffstat (limited to 'posts')
| -rw-r--r-- | posts/lum.org | 16 | ||||
| -rw-r--r-- | posts/why-i-chose-guix-over-nix.org | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/posts/lum.org b/posts/lum.org index 1bbd43d..f706134 100644 --- a/posts/lum.org +++ b/posts/lum.org @@ -18,8 +18,22 @@ I don't think parsing 12 thousand objects in JSON is efficient, but it's somethi But at least it helped me get better grasp of a Lisp language. I still intend to revisit this project sometime in the future, maybe even restructure it from scratch to fix the mistakes I made. For now, I don't think it can replace browser bookmarks, but it's something I'll focus on more in my next iteration with Lum. -*** Running Lum +** Running Lum Although it is not really necessary to run this program, having fzf and xclip would be great if you want to integrate with other programs. A pretty useful command to fetch your bookmarks would be: #+BEGIN_SRC bash $ lum -l | fzf | xclip -selection clipboard #+END_SRC + +** Integration with Emacs +While I'm not deploying binary packages to Lum, I can check my bookmarks through Emacs with a very simple function: +#+BEGIN_SRC emacs-lisp +(defun pache/my-consult-bookmark () + "Select a bookmark using `completing-read` and copy it to the clipboard." + (interactive) + (let* ((candidates (split-string (shell-command-to-string "java -jar ~/path/to/lum-1.0.0-SNAPSHOT-standalone.jar -l") "\n" t)) + (selection (completing-read "Select bookmark: " candidates))) + (when selection + (kill-new selection) + (message "Copied to clipboard: %s" selection)))) +(global-set-key (kbd "C-c b") 'pache/my-consult-bookmark) +#+END_SRC diff --git a/posts/why-i-chose-guix-over-nix.org b/posts/why-i-chose-guix-over-nix.org index 6a0a5f6..4a56f3b 100644 --- a/posts/why-i-chose-guix-over-nix.org +++ b/posts/why-i-chose-guix-over-nix.org @@ -7,6 +7,7 @@ I've been using NixOS for quite some time, but somehow I ended up with Guix. In ** The Emacs > Elisp > SICP > Scheme pipeline https://i.imgur.com/ouSS2fe.png + I honestly don't remember the first time I heard about Emacs, but I remember the first time I tried to use it I got gatekept by the Elisp magecraft. After that, I spent some days trying to learn some basic concepts of this ancient text editor. Thanks to https://learnxinyminutes.com/docs/elisp/ I was able to write some simple functions to make my Emacs experience smoother. To be honest, I didn't really liked to write Lisp back then, it sucked a lot for me. Even reading simple functions was a hassle since I wasn't used to see through all the parenthesis. At that time, I already knew about the 'Structure and Interpretaion of Computer Programs' book, but didn't read until then. It was only after seeing the MIT class linked below that I got hooked into computer magecraft: |
