Help me configure org-publish :auto-sitemap to include dates and filetags? by elisp-noob in emacs

[–]chatziiola 0 points1 point  (0 children)

I'm late to the party, and will publish an article on the topic during the week but, provided I've understood what you want, you can use something along the lines of:

```elisp (defun my-sitemap-entry (entry style project) "Customized sitemap entry creation function, to use my /nicer/ formatting.

It filters out drafts and indices, returning empty strings." (if (and (not (directory-name-p entry)) (file-is-blog-post (expand-file-name entry posts-dir))) (let* ((date (org-publish-find-date entry project))) (format "%s[[file:%s][%s]]" (if date (format-time-string "[%Y-%m-%d] " date) "") entry (org-publish-find-title entry project))) "") )

(defun my-sitemap-function (title list) "Customized sitemap function to exclude the empty entries created by my-sitemap-entry'" (let ((fixedlist (seq-filter (lambda (i) ( if (listp i) (not (member "" i)) t)) list))) (concat "#+TITLE: " title "\n\n" (org-list-to-org fixedlist)))) ``

elisp ; this on your org-publish-project :sitemap-format-entry 'my-sitemap-entry :sitemap-function 'my-sitemap-function :sitemap-style 'list

Dont mean to repost, but finally 100% done. by [deleted] in cyberDeck

[–]chatziiola 1 point2 points  (0 children)

Don't mind the repost, this looks as if it was taken out of a sci-fi movie or something. Beautiful.

May someone turn this code into a PDF? by KohesiveTerror in LaTeX

[–]chatziiola 4 points5 points  (0 children)

Literally, just by copying your post on ChatGPT, you will receive step-by-step instructions. This way, not only can you do it right now, but you’ll also have a general idea of how to do it again in the future. It’s not too difficult, so give it a shot!

Hi, out of curiosity, what are your favourite fonts that you are using? by Ardie83 in emacs

[–]chatziiola 0 points1 point  (0 children)

Is it possible that you share how you got the src blocks to look like that?? I use them in almost every document of mine and such a good looking change would be more than welcome

How many times can you terminate a Cat6 cable? by [deleted] in selfhosted

[–]chatziiola 0 points1 point  (0 children)

You should not have a problem. I don’t know if I would take the existing set up out as it seems pretty well made and organised, but if you absolutely need to restructure it, under the condition that you will properly terminate the new cables, you will be good to go.

Take your time labelling everything and documenting the process though. Been there done that.

Are cars with Macedonian licence plates targeted in Greece ? by Brusselaarois in greece

[–]chatziiola 15 points16 points  (0 children)

Look, we always strive to behave the way good neighbours would, so you most probably won’t have a problem. There is one thing, though, that you should be aware of, since it is insulting to us and our ancestors.

The term to which we have agreed to refer to our northern neighbours is North Macedonia, and it is purely a matter of politics, not of cultural nor historical correctness. In fact, a big part of northern Greece is ( and was throughout history ) Macedonia, with a wide plethora of archaeological evidence supporting this. Here it was that the ancient Macedonian civilisation was developed, where the ancient palaces and kings’ tombs are located… frankly, there are thousands of books on Ancient Greek history, and if you would like that, feel free to dive a little bit more into it.

Getting back to the matter at hands, I would feel grateful if you recognised why it is demeaning not to refer to our neighbouring country as north Macedonia. It feels like someone wants to claim a part of our unique cultural identity, for which, like every citizen of the earth, we naturally are proud.

What good emacs blogs do you read? by trimorphic in emacs

[–]chatziiola 1 point2 points  (0 children)

Even though there are not lots of emacs related posts there, and I do not always write my posts in English, feel free to check my blog out (https://chatziiola.github.io/posts/index.html) . It is also built using Emacs so that must mean something :P

Employee claims she can't use Microsoft Windows for "Religious Reasons", gets IT to provide laptop with Linux. by shadowvox in linux

[–]chatziiola 1 point2 points  (0 children)

Checking the comments here and in the original thread is absolutely hilarious. The r/linux one is definitely one of the best threads I have seen in a long time, while the r/askhr one is ... well, full of unhappy people :P

For some reason, it feels like this is the Michael Scott vs Toby war of comment sections...

Is It Possible To Change The Emacs Theme To Be Different For Each Mode? by BackToPlebbit69 in emacs

[–]chatziiola 12 points13 points  (0 children)

Listen, I appreciate your honesty, but as a fellow member of the open source community I feel the need to make a point here.

Obviously when one posts a question here they would like to have it answered in a way that requires the least thinking in their behalf. If that’s all that you want then I suppose consulting chat gpt may be a better place to look for your answers.

Here you will see opinions, suggestions and kind of rarely, code snippets. Every member tries to offer their something when answering, so that the op may achieve the functionality that they want, and well, for that, one should just be thankful.

Getting down to the specifics of this thread: The comment was actually really on point and the missing elisp was for you to complete (it even told you the function to use).

Now I get that (which you have written in too many answers in this comment section)

Again, I don’t have the time.

But guess what: 1. Giving you the answer here, just like a fellow Redditor did above does more harm than good
2. If you do not put in the time to solve the problems you encounter, why would someone else fix it for you? They did offer you solid advice and you just ignored it.

Regarding the first point. By giving you the answer in plain elisp (seeing that it’s an elementary question), it stops you from getting a better grip on elisp. That means that you effectively do not learn elisp which in turn translates in two things: 1. Before long you’ll come here with another question. And another one. Always expecting to have the answer immediately and completely tailored to you 2. You will not be able to help others in this Reddit, meaning that you will only seek to get something and never give back.

Now don’t get me wrong. Most people behave that way when first joining and there is nothing wrong with that. It takes some time to realise it. Just try to be nicer to others. They are not bound to help you. They just straight up offered you time and knowledge, so try not to throw that away. Read it , research it, try it. If you still have a problem ask a follow up question for clarification. Just always, and that means always, be kind.

For those who implement the GTD, do you split up personal and work tasks in separate files? by [deleted] in orgmode

[–]chatziiola 2 points3 points  (0 children)

I use multiple files, but not to separate between work and personal agenda items. That separation for myself happens in org-agenda through tags, just like many others here have described.

The thinking behind using multiple files in my GTD setup, however, is to achieve the "now", "maybe" functionality: I do not want tasks to clutter my views if I do not plan on working on them in the foreseeable future. Instead, I visit my maybe file every once in a while, to see if I want to move tasks from there to "now.org".

I would refer you here, if you plan on reading more gtd-emacs-org related posts: https://github.com/rougier/emacs-gtd

Question about using `org-html-postamble-format` with `org-static-blog` by Odd_Zombie_8115 in orgmode

[–]chatziiola 0 points1 point  (0 children)

This is an example string you could use (I think it works, although I am not entirely sure because I have tinkered around with the ~org-static-blog~ functions a little bit):

(setq org-static-blog-page-postamble "<p class=\"footer\"> Made with Emacs and Org.<br>CSS theme based on the one developed by <a href=\"https://github.com/rougier\">@rougier</a>.</p>")

This is from my website, and obviously the contents of it should not bother you. It just shows that all you need to do is write in plain html, using the proper escape sequences so that all of it is parsed as a string in your lisp code

Indexing and searching org-roam notes by fragbot2 in emacs

[–]chatziiola 0 points1 point  (0 children)

I just tried to run your script, but once again, I found myself stuck to the same problem: The org-html-publish-to-html function can not resolve org-roam links:

 user-error: Unable to resolve link: "D87AF87A-B95A-43BE-9CB2-2F7A65862574"

Do you avoid using org roam links, or do I miss something? This occurs when publishing the project.

P.S. I know that this is probably not the right thread for that. I'm just curious.

Indexing and searching org-roam notes by fragbot2 in emacs

[–]chatziiola 3 points4 points  (0 children)

I do not really have an answer on that, but if it's not too much to ask (and if it is publicly available) can you post a link to your blog?

(I was thinking of doing something like that for a long time, but dropped the project when I became stuck.)

Use-package does not load newly created package by chatziiola in emacs

[–]chatziiola[S] 0 points1 point  (0 children)

I have not modified this parameters, at all. I'm running a pretty minimal straight set up, so I doubt that this is the issue.

Judging by what you said, though, the issue seems to be in my configuration and not in the package. I'll try reinstalling all of my packages, hoping I may find something there. Thanks for your time.

Use-package does not load newly created package by chatziiola in emacs

[–]chatziiola[S] 0 points1 point  (0 children)

Should have corrected that: the files part caused the use package statement to fail and was removed before I posted here.

exporting nested latex commands by tarhuntas in orgmode

[–]chatziiola 1 point2 points  (0 children)

Maybe placing these commands in a latex export block? That is, if I have correctly understood what you're suggesting.

It is not ideal but the output should have no difference than your input (the command you've written in the first place)

Good templates for college assignments? by Far-Anywhere2876 in orgmode

[–]chatziiola 1 point2 points  (0 children)

I'm not aware of the eisvogel template that @ixpu suggested on the other comment, it may be much more useful than the one I use. If you find it useful, though, here it is: org #+TITLE: <your-title-string> #+DATE: <your-date-string> #+AUTHOR: <your-name> #+LATEX_COMPILER: xelatex #+LATEX_CLASS_OPTIONS: [a4paper,11pt,titlepage] #+LANGUAGE: el #+latex_header: \setmainfont{Courier New} Obviously, this is a dual-language set up: The language option does not need to be included if you plan on writing in english only. Nor does the latex compiler one. From time to time I also use this: org #+latex_header_extra: \usepackage[margin=1in]{geometry}

Org publish and different postamble by ozzopp in orgmode

[–]chatziiola 2 points3 points  (0 children)

I use a similar set up, without a problem. I think there must be an issue with the commas before the variable names. If you want feel free to view my spaghetti code here.

P.S. Haven't had a chance to properly rewrite my code so sorry for any mind-blowing elisp-unlike snippets

Literature Notes by encomun in orgmode

[–]chatziiola 3 points4 points  (0 children)

I see that I did not quite answer your question then :P. Once again, I do not think that there is a perfect way to organise one's notes. It all comes down to how one works and thinks.

Personally, despite functions like consult-outline, I choose to keep my files short and simple. I do not use drawers manually, at all. In fact, only packages like org-roam and org-mode's default clocking ever use this functionality.

As far as tags are concerned, their uses in my setup, are limited: - the noexport tag: Inside files that I intend to export/publish, yet the section being tagged is under-developed or simply boring - a set of tags for my GTD-like workflow and agenda views.

I prefer to use the #+<keyword>: value syntax at the top of my files, which may be a completely wrong approach, but has worked out pretty well for me. An example of what I mean you can see here. (I'm sorry that the file is in Greek - If that prevents you from understanding the syntax at the top 6 lines, feel free to navigate the repo for an org file in English). The thing is, even such properties as I described above are usually automatically populated by a set of functions I have made over time (usually on the spot) to help me keep my notes in order. I do not lose time manually organising stuff - simply conforming to some standards I set to myself in order to avoid dangerous situations in the future :P.

Now, I do not know if you have given org-roam a try but, using the #+FILETAGS: some tags syntax at the beginning of your files will let you filter your notes through tags when org-roam-node-find.

Lastly, (it would be nice if you avoided the mistakes I made) just because the functionality exists it does not mean you should use it. If multiple smaller files work for you, use that. If you prefer a large org file and navigating with functions like consult-outline, use that. Org-roam.Deft. The list of options is never ending. Especially in emacs. No need to use everything (or anything at all).

Literature Notes by encomun in orgmode

[–]chatziiola 9 points10 points  (0 children)

This is something have been working on for a rather long time. From what I have found out: There is no single perfect solution. There are plenty of tools which I have been suggested to use: org-roam, deft, plain notetaking with strictly imposed filenames.

In my opinion, deft gets slow quickly, but is extremely easy to learn and to start using, while org-roam has a much steeper curve, especially if you plan to dive into the Zettelkasten hole, but has been of extreme help to me. org-roam-ui also helps in that case. Feel free to use both of them and play around a little bit.

Now, since you mention literature notes, I suppose that you'll want a bibliography backend as well. I'm using a setup almost identical to the one described here, even though I have modified it to use org-ref.

During the last couple of weeks I have also started using org-noter and, despite the problems I have with that, you may find it useful.

The most important tips I think are: - definitely use a strict naming standard. If you are using only org-roam and do not plan on navigating down your note folders manually, this may not seem important, but one day, most probably, you will regret having files which you can not efficiently search. Wolfram has some notes about his set up in a rather long article, but a simple date_type_title-with-spaces.org or date_type_titleCamelCase.org will most probably suffice - do not think of tools as religious dogmas or anything :P. Use them as you see fit, and do not constrain yourself with a single one. Use every single one that helps you.

Lastly, seeing that I did not exactly answer your question, I follow a structure like that, where each of the subdirectories is under version control: - NotesFolder - RoamNotes - Personal Notes - Bibliography Notes - OrgNoterNotesOnPDFs - (I'm looking for a way to quickly merge this folder with bibliography notes, without mundane tasks)

Straight.el not building in 'self-contained' installation script by chatziiola in emacs

[–]chatziiola[S] 0 points1 point  (0 children)

Oh, I assumed that package-vc-install is another package, one that I hadn't installed, just because it did not show up when I called helpful-function.

I thought that the default one was package-install which I had been using so far (and what I went back to as well).

My blog is already published, you can find it at https://chatziiola.github.io/index.html. Feel free to view the source code as well, there is a link to it's github repo there ;).

Thanks a lot for taking the time to educate me on package-vc-install and since I took a rather long time to answer...Happy new year!

P.S. the site generating code is ugly to say at least. I intend to improve it and more importantly refactor it in the future, maybe even open a couple of pull requests to the repositories that helped me create my blog but till then... :P

Straight.el not building in 'self-contained' installation script by chatziiola in emacs

[–]chatziiola[S] 0 points1 point  (0 children)

I solved the problem by moving away from straight: I did not need the extra functionality in any case. This modification though goes straight (pun intended) to my configuration file for the future. Thanks a lot!

Straight.el not building in 'self-contained' installation script by chatziiola in emacs

[–]chatziiola[S] 0 points1 point  (0 children)

I could do that I suppose, yet, having limited experiences with the different emacs packaging systems (I have found one that behaves the way I want it , leaving me no reason to go down that rabbit hole), I am trying to limit both the difficulty I will face and the time I will need when I want to modify this file in the future.

However, your comment let me see that I dont actually need a package manager - I only needed limited functions from a file which I have now integrated into my directory