-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrss.xml
More file actions
1047 lines (929 loc) · 49.6 KB
/
rss.xml
File metadata and controls
1047 lines (929 loc) · 49.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<author><name>Javier Pacheco</name></author>
<title>Javier Pacheco's Blog</title>
<description>Posts, information and resources from Javier Pacheco</description>
<generator>Emacs webfeeder.el</generator>
<link>https://jpacheco.codeberg.page/</link>
<atom:link href="https://jpacheco.codeberg.page/rss.xml" rel="self" type="application/rss+xml"/>
<lastBuildDate>Sat, 03 Feb 2024 13:02:11 -0600</lastBuildDate>
<item>
<title>Emacs Fetching tool - efetch.el</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org1de0e8e">
<p>
Embrace a new level of Emacs mastery with <code>efetch.el</code> – a powerful and user-friendly Emacs Fetching Tool. Designed for enthusiasts who crave insights into their Emacs environment, <code>efetch.el</code> provides a seamless way to peek under the hood of your setup. With just a simple command, unlock a left-side buffer showcasing key details such as Emacs version, host information, user details, installed packages, active theme, and default font. Customizable and accessible, this tool not only delivers a quick snapshot of your Emacs configuration but also opens the door for collaborative enhancements. Join the community on <a href="https://github.com/engjpacheco/efetch.el">GitHub</a>, contribute your ideas, and elevate your Emacs experience with <code>efetch.el</code> today!
</p>
</div>
<div class="org-center">
<figure id="orga35f141"> <img src="./img/efetch/efetch.png" alt="efetch.png"></img> <figcaption> <span class="figure-number">Figure 1: </span>efetch.el tool in the left side of the frame.</figcaption></figure></div>
<div id="outline-container-org1b1fb22" class="outline-2">
<h2 id="org1b1fb22">Overview</h2>
<div class="outline-text-2" id="text-org1b1fb22">
<p>
Are you an Emacs enthusiast who loves to keep track of your environment details? Look no further! We are excited to introduce <code>efetch.el</code> - the Emacs Fetching Tool. This nifty extension provides a quick and informative snapshot of your Emacs setup, helping you stay in the know about your environment configuration.
</p>
</div>
</div>
<div id="outline-container-org3dae61b" class="outline-2">
<h2 id="org3dae61b">Features</h2>
<div class="outline-text-2" id="text-org3dae61b">
<ul class="org-ul"> <li> <b> <b>Quick Access</b></b>: Invoke <code>efetch</code> with a simple command to access a left-side buffer displaying essential information about your Emacs environment.</li>
<li> <b> <b>Information at a Glance</b></b>: Get a concise overview, including Emacs version, host details, user information, installed packages, active theme, and default font.</li>
<li> <b> <b>Customization</b></b>: Tailor the appearance and information displayed in the <code>efetch</code> buffer to suit your preferences.</li>
<li> <b> <b>Convenient Keyboard Shortcut</b></b>: Close the <code>efetch</code> buffer and its window effortlessly with the <code>q</code> key.</li>
</ul></div>
</div>
<div id="outline-container-org7859256" class="outline-2">
<h2 id="org7859256">How to Use</h2>
<div class="outline-text-2" id="text-org7859256">
<ol class="org-ol"> <li> <p>
<b> <b>Installation</b></b>: Add the following line to your Emacs configuration:
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">require</span> ' <span class="org-constant">efetch</span>)
</pre>
</div></li>
</ol> <p>
Ensure the <code>efetch.el</code> file is in a directory included in your <code>load-path</code>.
</p>
<ol class="org-ol"> <li> <b> <b>Usage</b></b>: Invoke <code>efetch</code> interactively using:</li>
</ol> <pre class="example" id="org748bfa5">
M-x efetch
</pre>
<p>
The information will be displayed in a left-side buffer named <b>efetch-popup</b>.
</p>
</div>
</div>
<div id="outline-container-org2a22ee5" class="outline-2">
<h2 id="org2a22ee5">Customization</h2>
<div class="outline-text-2" id="text-org2a22ee5">
<p>
Feel free to customize the appearance or the information displayed in the <code>efetch</code> buffer by modifying the relevant sections in the <code>efetch</code> function.
</p>
</div>
</div>
<div id="outline-container-org2b52c06" class="outline-2">
<h2 id="org2b52c06">Contribution</h2>
<div class="outline-text-2" id="text-org2b52c06">
<p>
We welcome contributions and feedback! <code>efetch.el</code> is hosted on <a href="https://github.com/engjpacheco/efetch.el">github</a>. Feel free to <a href="https://github.com/engjpacheco/efetch.el/fork">fork the repository</a> and submit pull requests.
The project is open to changes, improvements, and collaborations.
</p>
</div>
</div>
<div id="outline-container-org0d911d8" class="outline-2">
<h2 id="org0d911d8">Get Started</h2>
<div class="outline-text-2" id="text-org0d911d8">
<p>
Enhance your Emacs experience with <code>efetch.el</code>! Stay informed about your environment effortlessly. Download and integrate it into your Emacs setup today.
</p>
</div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20240114T115853--emacs-fetching-tool-efetchel__emacsfetch.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20240114T115853--emacs-fetching-tool-efetchel__emacsfetch.html</guid>
<pubDate>Sun, 14 Jan 2024 08:00:00 -0600</pubDate>
</item>
<item>
<title>Copy html source from org files to the clipboard.</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org5f9581d">
<p>
If you uses email a lot like me in your job, but also use emacs, you wonder if is possible
to export your org files to <code>html</code>, and paste in to your email, well, we are in emacs,
everything is possible within emacs, so in this post, I'll show you a couple of functions
that help me to make my workflow more efficient.
</p>
</div>
<div id="outline-container-org460bbad" class="outline-2">
<h2 id="org460bbad">Copy html source from org files to the clipboard.</h2>
<div class="outline-text-2" id="text-org460bbad">
<p>
First of all we only need a dependency for make this couple of functions to work:
</p>
<ul class="org-ul"> <li>htmlize</li>
</ul> <p>
Make sure you got this installed in emacs.
</p>
</div>
<div id="outline-container-org1f660cc" class="outline-3">
<h3 id="org1f660cc">Installing <code>htmlize</code>:</h3>
<div class="outline-text-3" id="text-org1f660cc">
<div class="org-src-container">
<label class="org-src-name"> <span class="listing-number">Listing 1: </span>This is an example using use-package:</label> <pre class="src src-emacs-lisp">( <span class="org-keyword">use-package</span> htmlize
<span class="org-builtin">:ensure</span> t)
</pre>
</div>
</div>
</div>
<div id="outline-container-orgaaa3258" class="outline-3">
<h3 id="orgaaa3258">Explaining the functions:</h3>
<div class="outline-text-3" id="text-orgaaa3258">
</div>
<div id="outline-container-org24c8858" class="outline-4">
<h4 id="org24c8858">Export file and copy to the clipboard.</h4>
<div class="outline-text-4" id="text-org24c8858">
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">defun</span> <span class="org-function-name">export-org-email</span> ()
<span class="org-doc">"Export the current email org buffer and copy it to the</span>
<span class="org-doc">clipboard"</span>
( <span class="org-keyword">interactive</span>)
( <span class="org-keyword">let</span> ((org-export-show-temporary-export-buffer nil)
(org-html-head (org-email-html-head)))
(org-html-export-as-html)
( <span class="org-keyword">with-current-buffer</span> <span class="org-string">"*Org HTML Export*"</span>
(kill-new (buffer-string)))
(message <span class="org-string">"HTML copied to clipboard"</span>)))
</pre>
</div>
<dl class="org-dl"> <dt>(defun export-org-email () …)</dt> <dd>Defines a new Emacs Lisp function named <code>export-org-email</code> with no arguments.</dd>
<dt>(interactive)</dt> <dd>Makes this function interactive, allowing it to be called with <code>M-x export-org-email</code> or through <code>key bindings</code>.</dd>
<dt>let block</dt> <dd>Sets local variables specific to this function.</dd>
<dt>org-export-show-temporary-export-buffer nil</dt> <dd>Prevents the display of a temporary buffer during the export process.</dd>
<dt>(org-html-head (org-email-html-head))</dt> <dd>Assigns the value returned by the function <code>org-email-html-head</code> to <code>org-html-head</code>. <code>org-email-html-head</code> generates the HTML head content for the exported email.</dd>
<dt>(org-html-export-as-html)</dt> <dd>Initiates the export process of the current <code>Org</code> mode buffer to HTML format using <code>org-html-export-as-html</code>.</dd>
<dt>(with-current-buffer " <b>Org HTML Export</b>" …)</dt> <dd>Accesses the buffer named <code>Org HTML Export</code> where the HTML export results are stored.</dd>
<dt> <b>(kill-new (buffer-string))</b></dt> <dd>Grabs the content of the <code>Org HTML Export</code> buffer using (buffer-string) and copies it to the system clipboard using <code>kill-new</code>.</dd>
<dt>(message "HTML copied to clipboard")</dt> <dd>Displays a message in the minibuffer indicating that the HTML content has been successfully copied to the clipboard.</dd>
</dl></div>
</div>
<div id="outline-container-org3835f49" class="outline-4">
<h4 id="org3835f49">Add some CSS to the file.</h4>
<div class="outline-text-4" id="text-org3835f49">
<p>
This snippet is only for add a custom <code>css</code> "touch" to your copied <code>html</code> org file.
</p>
<p>
In the below example the function looks in my <code>Downloads</code> folder, but you can specify
another <code>path</code>.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">defun</span> <span class="org-function-name">org-email-html-head</span> ()
<span class="org-doc">"Create the header with CSS for use with email"</span>
(concat
<span class="org-string">"<style type=\"text/css\">\n"</span>
<span class="org-string">"<!--/*--><![CDATA[/*><!--*/\n"</span>
( <span class="org-keyword">with-temp-buffer</span>
(insert-file-contents
<span class="org-string">"~/Downloads/custom.css"</span>)
(buffer-string))
<span class="org-string">"/*]]>*/-->\n"</span>
<span class="org-string">"</style>\n"</span>))
</pre>
</div>
<p>
And that's it, the next is to paste in to your mail, using the <code>inspection tools</code> in the
<code>browser</code>, or save it with <code>html</code> format.
</p>
</div>
</div>
</div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20240105T004503--export-org-files-to-html-and-clipboard__email_org_report.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20240105T004503--export-org-files-to-html-and-clipboard__email_org_report.html</guid>
<pubDate>Fri, 05 Jan 2024 08:00:00 -0600</pubDate>
</item>
<item>
<title>Copy html source from org files to the clipboard.</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org3a3b095">
<p>
If you uses email a lot like me in your job, but also use emacs, you wonder if is possible
to export your org files to <code>html</code>, and paste in to your email, well, we are in emacs,
everything is possible within emacs, so in this post, I'll show you a couple of functions
that help me to make my workflow more efficient.
</p>
</div>
<div id="outline-container-orgd867b5d" class="outline-2">
<h2 id="orgd867b5d">Copy html source from org files to the clipboard.</h2>
<div class="outline-text-2" id="text-orgd867b5d">
<p>
First of all we only need a dependency for make this couple of functions to work:
</p>
<ul class="org-ul"> <li>htmlize</li>
</ul> <p>
Make sure you got this installed in emacs.
</p>
</div>
<div id="outline-container-orgdcd4e1b" class="outline-3">
<h3 id="orgdcd4e1b">Installing <code>htmlize</code>:</h3>
<div class="outline-text-3" id="text-orgdcd4e1b">
<div class="org-src-container">
<label class="org-src-name"> <span class="listing-number">Listing 1: </span>This is an example using use-package:</label> <pre class="src src-elisp">( <span class="org-keyword">use-package</span> htmlize
<span class="org-builtin">:ensure</span> t)
</pre>
</div>
</div>
</div>
<div id="outline-container-org945855c" class="outline-3">
<h3 id="org945855c">Explaining the functions:</h3>
<div class="outline-text-3" id="text-org945855c">
</div>
<div id="outline-container-org3af6be5" class="outline-4">
<h4 id="org3af6be5">Export file and copy to the clipboard.</h4>
<div class="outline-text-4" id="text-org3af6be5">
<div class="org-src-container">
<pre class="src src-elisp">( <span class="org-keyword">defun</span> <span class="org-function-name">export-org-email</span> ()
<span class="org-doc">"Export the current email org buffer and copy it to the</span>
<span class="org-doc">clipboard"</span>
( <span class="org-keyword">interactive</span>)
( <span class="org-keyword">let</span> ((org-export-show-temporary-export-buffer nil)
(org-html-head (org-email-html-head)))
(org-html-export-as-html)
( <span class="org-keyword">with-current-buffer</span> <span class="org-string">"*Org HTML Export*"</span>
(kill-new (buffer-string)))
(message <span class="org-string">"HTML copied to clipboard"</span>)))
</pre>
</div>
<dl class="org-dl"> <dt>(defun export-org-email () …)</dt> <dd>Defines a new Emacs Lisp function named <code>export-org-email</code> with no arguments.</dd>
<dt>(interactive)</dt> <dd>Makes this function interactive, allowing it to be called with <code>M-x export-org-email</code> or through <code>key bindings</code>.</dd>
<dt>let block</dt> <dd>Sets local variables specific to this function.</dd>
<dt>org-export-show-temporary-export-buffer nil</dt> <dd>Prevents the display of a temporary buffer during the export process.</dd>
<dt>(org-html-head (org-email-html-head))</dt> <dd>Assigns the value returned by the function <code>org-email-html-head</code> to <code>org-html-head</code>. <code>org-email-html-head</code> generates the HTML head content for the exported email.</dd>
<dt>(org-html-export-as-html)</dt> <dd>Initiates the export process of the current <code>Org</code> mode buffer to HTML format using <code>org-html-export-as-html</code>.</dd>
<dt>(with-current-buffer " <b>Org HTML Export</b>" …)</dt> <dd>Accesses the buffer named <code>Org HTML Export</code> where the HTML export results are stored.</dd>
<dt> <b>(kill-new (buffer-string))</b></dt> <dd>Grabs the content of the <code>Org HTML Export</code> buffer using (buffer-string) and copies it to the system clipboard using <code>kill-new</code>.</dd>
<dt>(message "HTML copied to clipboard")</dt> <dd>Displays a message in the minibuffer indicating that the HTML content has been successfully copied to the clipboard.</dd>
</dl></div>
</div>
<div id="outline-container-org584bd69" class="outline-4">
<h4 id="org584bd69">Add some CSS to the file.</h4>
<div class="outline-text-4" id="text-org584bd69">
<p>
This snippet is only for add a custom <code>css</code> "touch" to your copied <code>html</code> org file.
</p>
<p>
In the below example the function looks in my <code>Downloads</code> folder, but you can specify
another <code>path</code>.
</p>
<div class="org-src-container">
<pre class="src src-elisp">( <span class="org-keyword">defun</span> <span class="org-function-name">org-email-html-head</span> ()
<span class="org-doc">"Create the header with CSS for use with email"</span>
(concat
<span class="org-string">"<style type=\"text/css\">\n"</span>
<span class="org-string">"<!--/*--><![CDATA[/*><!--*/\n"</span>
( <span class="org-keyword">with-temp-buffer</span>
(insert-file-contents
<span class="org-string">"~/Downloads/custom.css"</span>)
(buffer-string))
<span class="org-string">"/*]]>*/-->\n"</span>
<span class="org-string">"</style>\n"</span>))
</pre>
</div>
<p>
And that's it, the next is to paste in to your mail, using the <code>inspection tools</code> in the
<code>browser</code>, or save it with <code>html</code> format.
</p>
</div>
</div>
</div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20240105T004503--org-to-outlook__amm_email_org_report.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20240105T004503--org-to-outlook__amm_email_org_report.html</guid>
<pubDate>Fri, 05 Jan 2024 08:00:00 -0600</pubDate>
</item>
<item>
<title>Voidstrap a tui void linux installator</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org3f62faf">
<p>
This is the first post of the 2024, this is a project that I am working on in the last
year, is a minimialist voidlinux instalator it is based in some recomendations in
a guides that some friends of my have but "semiautomated".
</p>
</div>
<div id="outline-container-org3e2be59" class="outline-2">
<h2 id="org3e2be59">VoidStrap installer.</h2>
<div class="outline-text-2" id="text-org3e2be59">
<p>
A basic minimalist installer of <code>void-linux</code> with some packages to get ready to enjoy
this amazing GNU/Linux distribution.
</p>
</div>
</div>
<div id="outline-container-org15e8468" class="outline-2">
<h2 id="org15e8468">Usage:</h2>
<div class="outline-text-2" id="text-org15e8468">
</div>
<div id="outline-container-orgdb54750" class="outline-3">
<h3 id="orgdb54750">Running install.sh</h3>
<div class="outline-text-3" id="text-orgdb54750">
<p>
Download the iso, and once in root inside the live, git clone this repo:
(You need to update inside the iso and install <code>git</code>)
</p>
<p>
NOTE: there are 3 <code>branches:</code>
</p>
<dl class="org-dl"> <dt>main</dt> <dd>This will install <code>void-musl</code>.</dd>
<dt>glibc</dt> <dd>This will install <code>void-glibc</code>.</dd>
<dt>dual</dt> <dd>This will install <code>void-glibc</code> dual boot with <code>Windows</code>.
<ul class="org-ul"> <li> <b>This branch is tested only with <code>Windows</code>, I never try it with other distributions.</b></li>
<li>If you want musl you can change the link to the mirror in the <code>install.sh</code> script:</li>
</ul></dd>
</dl> <pre class="example" id="orgeaf6dcb">
- Change this in line 11:
export XBPS_ARCH=x86_64 && xbps-install -Suy -R http://mirrors.servercentral.com/voidlinux/current -r /mnt \
- For this:
export XBPS_ARCH=x86_64-musl && xbps-install -Suy -R http://mirrors.servercentral.com/voidlinux/current/musl -r /mnt \
</pre>
<div class="org-src-container">
<pre class="src src-shell">git clone https://git.disroot.org/jpacheco/voidstrap
<span class="org-builtin">cd</span> voidstrap
sh install.sh
</pre>
</div>
<p>
Once there the script will open <code>cfdisk</code>, and you need to format the HDD in this
specific format:
</p>
<pre class="example" id="org45486c1">
- /dev/sdX1 -> as the boot partition.
- /dev/sdY2 -> as the swap partition.
- /dev/sdZ3 -> as the root partition.
</pre>
<p>
NOTE: Replace X,Y & Z for your partition name.
I consider to have this structure of partition, but you can change it, but you must
change the code in <code>postinstall.sh</code> when the scripts make the <code>fstab</code> archive.
</p>
<p>
<b>Make sure you do a backup of your files before doing crazy things and trust anyone script</b>
</p>
<p>
When the <code>install.sh</code> script finish, you need to run the postinstall script located in <code>/root folder:</code>
</p>
</div>
</div>
<div id="outline-container-org4cec1d2" class="outline-3">
<h3 id="org4cec1d2">Running postinstall.sh</h3>
<div class="outline-text-3" id="text-org4cec1d2">
<p>
This script its going to create some configuration files, like: <code>fstab</code>, <code>rc.conf</code>,
change the password of <code>root</code>, and add user(s).
</p>
<div class="org-src-container">
<pre class="src src-shell">xchroot /mnt
</pre>
</div>
<p>
Then run the <code>chroot.sh</code> script.
</p>
<div class="org-src-container">
<pre class="src src-shell">sh /root/postinstall.sh
</pre>
</div>
<p>
When the <code>postinsall.sh</code> script finishes, you only need to reboot and enjoy your
<b>Void-Linux</b> distribution.
</p>
<p>
When it finish you need to run the <code>postinstall.sh</code> script, that is going to install
the <b>X server</b> and some other "necessary" packages.
</p>
</div>
</div>
</div>
<div id="outline-container-org93e3e9b" class="outline-2">
<h2 id="org93e3e9b">The custom.sh script</h2>
<div class="outline-text-2" id="text-org93e3e9b">
<p>
This is going to install my personal dotfiles, and a specific packages that I use:
</p>
<div class="org-src-container">
<pre class="src src-shell">sh /root/custom.sh
</pre>
</div>
<p>
But you can specify your dotfiles repositories and others that you require whit some parameters:
</p>
<pre class="example">
sh custom.sh -r https://codeberg.org/jpacheco/dotfiles # specify a repo url.
sh custom.sh -p otherprogfile.csv # especify a custom package archive to install.
sh custom.sh -b dev # especify the name of a custom branch in case of needed.
</pre>
</div>
</div>
<div id="outline-container-org6e0017a" class="outline-2">
<h2 id="org6e0017a">References:</h2>
<div class="outline-text-2" id="text-org6e0017a">
<ul class="org-ul"> <li> <a href="https://codeberg.org/jpacheco/voidstrap">Voidstrap.</a></li>
<li> <a href="https://docs.voidlinux.org/">Voidlinux Documentation.</a></li>
<li> <a href="https://git.disroot.org/tuxliban/tutoriales_void/src/branch/master/Gu%C3%ADas">Tuxliban guides.</a></li>
</ul></div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20240101T143436--voidstrap-a-tui-void-linux-installator__post_voidlinux.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20240101T143436--voidstrap-a-tui-void-linux-installator__post_voidlinux.html</guid>
<pubDate>Mon, 01 Jan 2024 08:00:00 -0600</pubDate>
</item>
<item>
<title>Copy org blocks to clipboard</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="orgeaedcaa">
<p>
In this post I'll demostrate how to add a button to copy the content of a
src block generated by ox-publish in emacs within org-mode, this script
create a button in every instance of codeblock in the html file that ox-publish
generate when create the web-page content.
</p>
</div>
<div class="org-center">
<figure id="orgc40d426"> <img src="./img/20231229T170308--copy-org-blocks-to-clipboard/copy.gif" alt="copy.gif"></img> <figcaption> <span class="figure-number">Figure 1: </span>How the buttons looks like.</figcaption></figure></div>
<div id="outline-container-org938c985" class="outline-2">
<h2 id="org938c985">The first issue.</h2>
<div class="outline-text-2" id="text-org938c985">
<p>
When I started to looking in how to add a copy button to my org-block-src blocks,
I was getting a little confused because of the lack of information about it (or maybe
I was not ask in the proper way), but I found a <a href="https://www.roboleary.net/2022/01/13/copy-code-to-clipboard-blog.html">webpage</a> that help me to figure it out
how to make this possible. But I found that there is a problem, it's <code>javascript</code> looks
a <code><code></code> tag, and ox-publish (as far as I know) don't generate that tag in the html file,
so I have been force to use my brain instead of only copy the scripts.
</p>
</div>
</div>
<div id="outline-container-orgab13ca8" class="outline-2">
<h2 id="orgab13ca8">The Javascript code.</h2>
<div class="outline-text-2" id="text-orgab13ca8">
<p>
The code below can be improved? yes, but at this point for me it works and its ok,
may be can be a little mess, but it do the job.
This is the whole javascript code that I wrote:
</p>
<div class="org-src-container">
<pre class="src src-javascript"> <span class="org-keyword">function</span> <span class="org-function-name">copyPreTextToClipboard</span>( <span class="org-variable-name">orgSrcContainer</span>, <span class="org-variable-name">classes</span>) {
<span class="org-keyword">let</span> <span class="org-variable-name">preTag</span>;
<span class="org-keyword">for</span> ( <span class="org-keyword">const</span> <span class="org-variable-name">classItem</span> <span class="org-keyword">of</span> classes) {
preTag = orgSrcContainer.querySelector( <span class="org-string">`pre.${classItem}`</span>);
<span class="org-keyword">if</span> (preTag) <span class="org-keyword">break</span>;
}
<span class="org-keyword">if</span> (preTag) {
<span class="org-keyword">const</span> <span class="org-variable-name">textContent</span> = preTag.textContent;
<span class="org-comment-delimiter">// </span> <span class="org-comment">Get class name of the container</span>
<span class="org-keyword">const</span> <span class="org-variable-name">containerClass</span> = orgSrcContainer.className;
<span class="org-comment-delimiter">// </span> <span class="org-comment">Create a temporary textarea element to copy the text</span>
<span class="org-keyword">const</span> <span class="org-variable-name">tempTextarea</span> = document.createElement( <span class="org-string">'textarea'</span>);
tempTextarea.value = textContent;
<span class="org-comment-delimiter">// </span> <span class="org-comment">Append the textarea to the document</span>
document.body.appendChild(tempTextarea);
<span class="org-comment-delimiter">// </span> <span class="org-comment">Select the text within the textarea</span>
tempTextarea.select();
<span class="org-comment-delimiter">// </span> <span class="org-comment">Copy the selected text to the clipboard</span>
document.execCommand( <span class="org-string">'copy'</span>);
<span class="org-comment-delimiter">// </span> <span class="org-comment">Remove the temporary textarea</span>
document.body.removeChild(tempTextarea);
console.log( <span class="org-string">'Text copied to clipboard:'</span>, textContent);
console.log( <span class="org-string">'Class name of container:'</span>, containerClass);
<span class="org-comment-delimiter">// </span> <span class="org-comment">Change button label to "Copied"</span>
<span class="org-keyword">const</span> <span class="org-variable-name">button</span> = orgSrcContainer.querySelector( <span class="org-string">'button'</span>);
<span class="org-keyword">if</span> (button) {
button.textContent = <span class="org-string">'Copied'</span>;
button.disabled = <span class="org-constant">true</span>; <span class="org-comment-delimiter">// </span> <span class="org-comment">Disable the button after copying</span>
<span class="org-comment-delimiter">// </span> <span class="org-comment">Revert button to its initial state after 3 seconds</span>
setTimeout(() => {
button.textContent = <span class="org-string">'Copy Text'</span>;
button.disabled = <span class="org-constant">false</span>; <span class="org-comment-delimiter">// </span> <span class="org-comment">Enable the button after timeout</span>
}, 3000);
}
} <span class="org-keyword">else</span> {
console.log( <span class="org-string">'Pre tag with specified classes not found inside org-src-container'</span>);
}
}
<span class="org-keyword">function</span> <span class="org-function-name">createCopyButtonForDivs</span>() {
<span class="org-keyword">const</span> <span class="org-variable-name">orgSrcContainers</span> = document.querySelectorAll( <span class="org-string">'div.org-src-container'</span>);
orgSrcContainers.forEach((container) => {
<span class="org-keyword">const</span> <span class="org-variable-name">button</span> = document.createElement( <span class="org-string">'button'</span>);
button.textContent = <span class="org-string">'Copy Text'</span>;
button.addEventListener( <span class="org-string">'click'</span>, () => {
<span class="org-keyword">const</span> <span class="org-variable-name">classesToSearch</span> = [
<span class="org-string">'src.src-emacs-lisp'</span>,
<span class="org-string">'src.src-python'</span>,
<span class="org-string">'src.src-javascript'</span>,
<span class="org-string">'src.src-c'</span>,
<span class="org-string">'src.src-html'</span>,
<span class="org-string">'src.src-css'</span>]; <span class="org-comment-delimiter">// </span> <span class="org-comment">Add more classes/languages as needed</span>
copyPreTextToClipboard(container, classesToSearch);
});
container.appendChild(button);
});
}
<span class="org-comment-delimiter">// </span> <span class="org-comment">Call the function to create copy buttons in each org-src-container div</span>
createCopyButtonForDivs();
</pre>
</div>
</div>
<div id="outline-container-org522776a" class="outline-3">
<h3 id="org522776a">What the javascript script actually do:</h3>
<div class="outline-text-3" id="text-org522776a">
<p>
The provided code is a JavaScript script that aims to add functionality to copy text from <pre> elements with specific classes when a corresponding button is clicked. Here's a breakdown of what each part of the code does:
</p>
<p>
<code>copyPreTextToClipboard(orgSrcContainer, classes)</code>
This function receives two parameters:
</p>
<p>
<code>orgSrcContainer</code>: Represents the container element that holds <code><pre></code> elements.
<code>classes</code>: An array of strings containing classes (like CSS classes) representing different languages in <code><pre></code> elements.
It searches for a <code><pre></code> element with the specified classes inside the <code>orgSrcContainer</code>.
</p>
<p>
If found:
</p>
<p>
Grabs the text content of the <code><pre></code> element.
Creates a temporary <code><textarea></code> element, sets its value to the extracted text, appends it to the document body, selects its content, and copies it to the clipboard using <code>document.execCommand('copy')</code>.
Logs the copied text and the class name of the container to the console.
Modifies the button inside the container to display <code>"Copied"</code> disables it temporarily, and reverts it to its initial state after 3 seconds.
<code>createCopyButtonForDivs()</code>
This function targets all <code><div></code> elements with the class <code>org-src-container</code>.
For each of these divs, it creates a new button.
The button is assigned the text <code>"Copy Text"</code> and an event listener that triggers the <code>copyPreTextToClipboard()</code> function when clicked.
<code>copyPreTextToClipboard()</code> is called with the specific container ( <code>div.org-src-container</code>) and an array of classes representing different programming languages.
Overall Functionality.
</p>
<p>
This script aims to enhance the functionality of <code><div></code> containers by adding a <code>"Copy Text"</code> button to each container. When this button is clicked, it searches for <code><pre></code> elements with specific classes inside that container and copies their text content to the clipboard. Additionally, it temporarily disables and updates the button's label to indicate that the text has been copied.
</p>
</div>
</div>
</div>
<div id="outline-container-org9cf3def" class="outline-2">
<h2 id="org9cf3def">How to run the script file?</h2>
<div class="outline-text-2" id="text-org9cf3def">
<p>
To run this script automatically, when a org-src block appear in html I do this in
the <code>head.html</code> file in my org project:
</p>
<div class="org-src-container">
<pre class="src src-html">< <span class="org-function-name">script</span> <span class="org-variable-name">src</span>= <span class="org-string">"/cpbtn.js"</span>></ <span class="org-function-name">script</span>>
< <span class="org-function-name">script</span>>
window.onload = function() {
// Call the function to create copy buttons in each org-src-container div
createCopyButtonForDivs();
};
</ <span class="org-function-name">script</span>>
</pre>
</div>
</div>
</div>
<div id="outline-container-org80ba080" class="outline-2">
<h2 id="org80ba080">Test the buttons:</h2>
<div class="outline-text-2" id="text-org80ba080">
</div>
<div id="outline-container-orgcd57da9" class="outline-3">
<h3 id="orgcd57da9">Python</h3>
<div class="outline-text-3" id="text-orgcd57da9">
<div class="org-src-container">
<pre class="src src-python"> <span class="org-keyword">import</span> calendar
<span class="org-keyword">for</span> i <span class="org-keyword">in</span> <span class="org-builtin">range</span>(100):
<span class="org-builtin">print</span>(i)
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc1febe3" class="outline-3">
<h3 id="orgc1febe3">Emacs-lisp</h3>
<div class="outline-text-3" id="text-orgc1febe3">
<div class="org-src-container">
<pre class="src src-emacs-lisp">(message <span class="org-string">"hello World"</span>)
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd86776e" class="outline-3">
<h3 id="orgd86776e">C</h3>
<div class="outline-text-3" id="text-orgd86776e">
<div class="org-src-container">
<pre class="src src-c"> <span class="org-preprocessor">#include</span> <span class="org-string"><stdio></span>
<span class="org-type">int</span> <span class="org-function-name">main</span>( <span class="org-type">int</span> <span class="org-variable-name">argc</span>, <span class="org-type">char</span> * <span class="org-variable-name">argv</span>[])
{
<span class="org-keyword">return</span> 0;
}
</pre>
</div>
</div>
</div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20231229T170308--copy-org-blocks-to-clipboard__javascript_post.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20231229T170308--copy-org-blocks-to-clipboard__javascript_post.html</guid>
<pubDate>Fri, 29 Dec 2023 08:00:00 -0600</pubDate>
</item>
<item>
<title>Attempt to test RSS feeds</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org9477d73">
<p>
Hello.
</p>
<p>
This post, is about more like a testing, because, I'm trying to add RSS feeds into
this "web-page", so basically this is a test, and see if when I build the webpage
is going to work… or not.
So, this is the preview and read this post to see what I'm trying to do.
</p>
</div>
<div id="outline-container-org26caf6f" class="outline-2">
<h2 id="org26caf6f">Rss Feeds.</h2>
<div class="outline-text-2" id="text-org26caf6f">
<p>
First, what is <code>rss feeds</code>?
This is what wikipedia have in their page:
</p>
<pre class="example" id="orgba92272">
RSS (RDF Site Summary or Really Simple Syndication) is a web feed that allows users and applications to access updates to websites in a standardized, computer-readable format. Subscribing to RSS feeds can allow a user to keep track of many different websites in a single news aggregator, which constantly monitor sites for new content, removing the need for the user to manually check them. News aggregators (or "RSS readers") can be built into a browser, installed on a desktop computer, or installed on a mobile device.
</pre>
<p>
Well whit that read, what I'm going to do is to export a file with the <code>.xml</code> extension,
and stored in my host <code>codeberg pages</code>, well that is the goal, but I'm not sure about it.
</p>
</div>
</div>
<div id="outline-container-orgb320328" class="outline-2">
<h2 id="orgb320328">Packages needed:</h2>
<div class="outline-text-2" id="text-orgb320328">
<p>
These are the packages that we need to use to make the rss file:
</p>
<ul class="org-ul"> <li>ox-publish.</li>
<li>ox-rss.</li>
<li>webfeeder.</li>
<li>esxml.</li>
</ul> <p>
and these need to be in the <code>build-site.el</code> script:
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"> <span class="org-comment-delimiter">;; </span> <span class="org-comment">Check and install dependencies</span>
( <span class="org-keyword">dolist</span> (package '(htmlize ox-rss webfeeder esxml))
( <span class="org-keyword">unless</span> (package-installed-p package)
(package-install package)))
<span class="org-comment-delimiter">;; </span> <span class="org-comment">Load publishing system</span>
( <span class="org-keyword">require</span> ' <span class="org-constant">ox-publish</span>)
( <span class="org-keyword">require</span> ' <span class="org-constant">ox-rss</span>)
( <span class="org-keyword">require</span> ' <span class="org-constant">webfeeder</span>)
( <span class="org-keyword">require</span> ' <span class="org-constant">esxml</span>)
</pre>
</div>
</div>
</div>
<div id="outline-container-org49a20cf" class="outline-2">
<h2 id="org49a20cf">Functions to use:</h2>
<div class="outline-text-2" id="text-org49a20cf">
<p>
Now declare some functions to parse in the public folder that we create for save the
exported <code>html</code> files.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"> <span class="org-comment-delimiter">;;; </span> <span class="org-comment">build RSS feed</span>
( <span class="org-keyword">defun</span> <span class="org-function-name">dw/rss-extract-date</span> (html-file)
<span class="org-doc">"Extract the post date from an HTML file."</span>
( <span class="org-keyword">with-temp-buffer</span>
(insert-file-contents html-file)
( <span class="org-keyword">let*</span> ((dom (libxml-parse-html-region (point-min) (point-max)))
(date-string (dom-text (car (dom-by-class dom <span class="org-string">"date"</span>))))
(parsed-date (parse-time-string date-string))
(day (nth 3 parsed-date))
(month (nth 4 parsed-date))
(year (nth 5 parsed-date)))
<span class="org-comment-delimiter">;; </span> <span class="org-comment">NOTE: Hardcoding this at 8am for now</span>
(encode-time 0 0 8 day month year))))
( <span class="org-keyword">setq</span> webfeeder-date-function #'dw/rss-extract-date)
(webfeeder-build <span class="org-string">"rss.xml"</span>
<span class="org-string">"./public"</span>
<span class="org-string">"https://jpacheco.codeberg.page/"</span>
(mapcar ( <span class="org-keyword">lambda</span> (file) (concat <span class="org-string">"posts/"</span> file))
( <span class="org-keyword">let</span> ((default-directory (expand-file-name <span class="org-string">"./public/posts/"</span>)))
(directory-files-recursively <span class="org-string">"./"</span> <span class="org-string">".*\\.html$"</span>)))
<span class="org-builtin">:builder</span> 'webfeeder-make-rss
<span class="org-builtin">:title</span> <span class="org-string">"Javier Pacheco's Blog"</span>
<span class="org-builtin">:description</span> <span class="org-string">"Posts, information and resources from Javier Pacheco"</span>
<span class="org-builtin">:author</span> <span class="org-string">"Javier Pacheco"</span>)
</pre>
</div>
</div>
</div>
<div id="outline-container-orgcf25b02" class="outline-2">
<h2 id="orgcf25b02">Testing.</h2>
<div class="outline-text-2" id="text-orgcf25b02">
<p>
Well, this post ends here, now in a few minutes this post is going to be uploaded,
and I'll see if rss feeds generator actually works whit the functions and commands
above.
</p>
</div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20231226T142110--attempt-to-test-rss-feeds__personal_post.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20231226T142110--attempt-to-test-rss-feeds__personal_post.html</guid>
<pubDate>Tue, 26 Dec 2023 08:00:00 -0600</pubDate>
</item>
<item>
<title>Denote silo function</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org4093227">
<p>
I have been reading some thing information about denote, and its powerful tools
that the good <code>prots</code> give to us the mortals. I am starting this "post" thing, and
is good to have my notes apart from the posts that I'm going to write in the
future, so reading I find a interesting function that prots suggest to use
in the creation of notes.
</p>
</div>
<div id="outline-container-org95d8f39" class="outline-2">
<h2 id="org95d8f39">Use custom commands to select a silo.</h2>
<div class="outline-text-2" id="text-org95d8f39">
<p>
As you can read in the tittle, <code>prots</code> creates this singular <i>elsip</i> function, that prompts
for a entry point directory and then a denote function.
</p>
</div>
<div id="outline-container-orgce3315e" class="outline-3">
<h3 id="orgce3315e">The Silo funcitons:</h3>
<div class="outline-text-3" id="text-orgce3315e">
</div>
<div id="outline-container-orgcedbff9" class="outline-4">
<h4 id="orgcedbff9">First part of the function:</h4>
<div class="outline-text-4" id="text-orgcedbff9">
<p>
Define a list of directories. This is very convenient, because whit this I can separate
my notes directory of my posts directory:
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">defvar</span> <span class="org-variable-name">my-denote-silo-directories</span>
`( <span class="org-string">"/home/prot/Videos/recordings"</span>
<span class="org-string">"/home/prot/Documents/books"</span>
<span class="org-comment-delimiter">;; </span> <span class="org-comment">You don't actually need to include the `</span> <span class="org-comment"> <span class="org-constant">denote-directory</span></span> <span class="org-comment">' here</span>
<span class="org-comment-delimiter">;; </span> <span class="org-comment">if you use the regular commands in their global context. I am</span>
<span class="org-comment-delimiter">;; </span> <span class="org-comment">including it for completeness.</span>
,denote-directory)
<span class="org-doc">"List of file paths pointing to my Denote silos.</span>
<span class="org-doc"> This is a list of strings."</span>)
</pre>
</div>
</div>
</div>
<div id="outline-container-org0003ae9" class="outline-4">
<h4 id="org0003ae9">Then define a list of the denote commands that usually I use:</h4>
<div class="outline-text-4" id="text-org0003ae9">
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">defvar</span> <span class="org-variable-name">my-denote-commands-for-silos</span>
'(denote
denote-date
denote-subdirectory
denote-template
denote-type)
<span class="org-doc">"List of Denote commands to call after selecting a silo.</span>
<span class="org-doc"> This is a list of symbols that specify the note-creating</span>
<span class="org-doc"> interactive functions that Denote provides."</span>)
</pre>
</div>
</div>
</div>
<div id="outline-container-org8c6298e" class="outline-4">
<h4 id="org8c6298e">The Silo Command in action:</h4>
<div class="outline-text-4" id="text-org8c6298e">
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">defun</span> <span class="org-function-name">my-denote-pick-silo-then-command</span> (silo command)
<span class="org-doc">"Select SILO and run Denote COMMAND in it.</span>
<span class="org-doc"> SILO is a file path from `</span> <span class="org-doc"> <span class="org-constant">my-denote-silo-directories</span></span> <span class="org-doc">', while</span>
<span class="org-doc"> COMMAND is one among `</span> <span class="org-doc"> <span class="org-constant">my-denote-commands-for-silos</span></span> <span class="org-doc">'."</span>
( <span class="org-keyword">interactive</span>
(list (completing-read <span class="org-string">"Select a silo: "</span> my-denote-silo-directories nil t)
(intern (completing-read
<span class="org-string">"Run command in silo: "</span>
my-denote-commands-for-silos nil t))))
( <span class="org-keyword">let</span> ((denote-user-enforced-denote-directory silo))
(call-interactively command)))
</pre>
</div>
</div>
</div>
<div id="outline-container-orgcfc7c0f" class="outline-4">
<h4 id="orgcfc7c0f"> <b>The complete functions:</b></h4>
<div class="outline-text-4" id="text-orgcfc7c0f">
<div class="org-src-container">
<pre class="src src-emacs-lisp">( <span class="org-keyword">defvar</span> <span class="org-variable-name">my-denote-silo-directories</span>
`( <span class="org-string">"/home/prot/Videos/recordings"</span>
<span class="org-string">"/home/prot/Documents/books"</span>
<span class="org-comment-delimiter">;; </span> <span class="org-comment">You don't actually need to include the `</span> <span class="org-comment"> <span class="org-constant">denote-directory</span></span> <span class="org-comment">' here</span>
<span class="org-comment-delimiter">;; </span> <span class="org-comment">if you use the regular commands in their global context. I am</span>
<span class="org-comment-delimiter">;; </span> <span class="org-comment">including it for completeness.</span>
,denote-directory)
<span class="org-doc">"List of file paths pointing to my Denote silos.</span>
<span class="org-doc"> This is a list of strings."</span>)
( <span class="org-keyword">defvar</span> <span class="org-variable-name">my-denote-commands-for-silos</span>
'(denote
denote-date
denote-subdirectory
denote-template
denote-type)
<span class="org-doc">"List of Denote commands to call after selecting a silo.</span>
<span class="org-doc"> This is a list of symbols that specify the note-creating</span>
<span class="org-doc"> interactive functions that Denote provides."</span>)
( <span class="org-keyword">defun</span> <span class="org-function-name">my-denote-pick-silo-then-command</span> (silo command)
<span class="org-doc">"Select SILO and run Denote COMMAND in it.</span>
<span class="org-doc"> SILO is a file path from `</span> <span class="org-doc"> <span class="org-constant">my-denote-silo-directories</span></span> <span class="org-doc">', while</span>
<span class="org-doc"> COMMAND is one among `</span> <span class="org-doc"> <span class="org-constant">my-denote-commands-for-silos</span></span> <span class="org-doc">'."</span>
( <span class="org-keyword">interactive</span>
(list (completing-read <span class="org-string">"Select a silo: "</span> my-denote-silo-directories nil t)
(intern (completing-read
<span class="org-string">"Run command in silo: "</span>
my-denote-commands-for-silos nil t))))
( <span class="org-keyword">let</span> ((denote-user-enforced-denote-directory silo))
(call-interactively command)))
</pre>
</div>
<p>
Now whit these couple of functions we can have a better way to take our notes,
posts, and other denote related things.
</p>
<p>
So, for now it's all, I was able to write this post within emacs and this silo function
that <code>protesilaos</code> provide to us, so, Thank you <code>prot</code>.
</p>
</div>
</div>
</div>
</div>
<div id="outline-container-orgeff8924" class="outline-2">
<h2 id="orgeff8924">Reference:</h2>
<div class="outline-text-2" id="text-orgeff8924">
<dl class="org-dl"> <dt> <a href="https://protesilaos.com/emacs/denote#h:0f72e6ea-97f0-42e1-8fd4-0684af0422e0">Protesilaos web page</a></dt> <dd>3.5.1. Use custom commands to select a silo</dd>
</dl></div>
</div>
</div>]]></description>
<link>https://jpacheco.codeberg.page/posts/./20231225T213425--denote-silo-function__emacs_personal_post.html</link>
<guid isPermaLink="false">https://jpacheco.codeberg.page/posts/./20231225T213425--denote-silo-function__emacs_personal_post.html</guid>
<pubDate>Mon, 25 Dec 2023 08:00:00 -0600</pubDate>
</item>
<item>
<title>Themes and end of the year</title>
<description><![CDATA[<div id="content" class="content">
<p>
</p>
<div class="PREVIEW" id="org9f56d73">
<p>
This is the first of a few posts I'm creating this "web" only for my knowledge,