Skip to main content
11 events
when toggle format what by license comment
Nov 6, 2022 at 18:26 comment added raylight @Tobias Thanks, with the second sample of code it works immediately for me now.
Nov 6, 2022 at 18:26 vote accept raylight
Nov 3, 2022 at 14:48 comment added g-gundam @Tobias Thank you for that speed optimization.
Nov 3, 2022 at 5:12 comment added Tobias @raylight Please, try again with the modified version at the bottom of this answer.
Nov 3, 2022 at 5:11 history edited Tobias CC BY-SA 4.0
Avoid writing Eshell alias file after each added alias.
Nov 2, 2022 at 7:18 comment added raylight Well, it's an old file with aliases and I don't really know all of them by heart. But there are 131 aliases. I've also tested with an empty .alias file and in this case this solution works immediately. Apparently, 131 is a huge number for elisp, I'm not sure if it's only that though...
Nov 2, 2022 at 7:06 comment added g-gundam Just out of curiosity, how many aliases do you have? 40 seconds is a long time just to load aliases.
Nov 2, 2022 at 5:57 comment added raylight Thanks! Even though it worked fine it seems that emacs loads this function on the run all the times that I open eshell for the first time on emacs... Since I have a lot of aliases this solution is slow for my case (it takes around 40 seconds to start)... I'm not sure if there's a workaround with a elisp solution. But I've realized the bash solution on the page from your link works immediately... Probably writing a bash script that watches changes on my .alias file and rewrites a second .alias_eshell file works better for me.
Nov 2, 2022 at 5:34 vote accept raylight
Nov 2, 2022 at 5:46
Nov 2, 2022 at 5:01 history edited g-gundam CC BY-SA 4.0
added 15 characters in body
Nov 2, 2022 at 2:37 history answered g-gundam CC BY-SA 4.0