summaryrefslogtreecommitdiff
path: root/eshell-conf.el
AgeCommit message (Collapse)Author
2023-12-13eshell: a custom fs command, but not needed.JSDurand
* eshell-conf.el: A custom `fs` command was added and then commented as that is not really needed.
2023-07-29add 'btm' as a visual commandJSDurand
I recently found this tool, which offers better experience than 'htop' in my opinion.
2023-07-22eshell: gv is now async and reports progressJSDurand
* eshell-conf.el (eshell-gv): Now gv uses `make-process` to asynchronously compile GraphViz files to image files. Moreover, it reports the progress in the echo area as well, as a quality-of-life improvement.
2023-02-28eshell: add two definitions of variables to avoid errorsJSDurand
* eshell-conf.el (dereference-links, dired-flag): Eshell uses locally bound variables for some reason, so we need to provide definitions for those variables in order to avoid errors.
2023-02-26eshell: Add completion support for the gv commandJSDurand
* eshell-conf.el (pcomplete/gv): This function will be called by pcomplete to provide completions for the gv command, in Eshell. (gv-complete-switches): This function provides completions for the switches of the gv command. (gv-complete-files): This function provides completions for source files that are valid for the gv command.
2023-02-25eshell: Fix typo and change section headingsJSDurand
* eshell-conf.el: Fix a typo in the documentation string of the function eshell/dl, and add some more sections for better structures.
2023-02-25eshell: Call "dl" after cd.JSDurand
* eshell-conf.el (eshell-list-files-after-cd): I used to set this variable to call ls after cd. But I want to use my dl command now. (eshell-directory-ls, eshell-directory-change-hook): Call "dl --group-directories-first" after cd.
2023-02-25eshell: improve the method to group directories firstJSDurand
* eshell-conf.el (em-term, dir-literal, show-recursive, sort-method) (show-all, show-almost-all, listing-style, human-readable) (numeric-uid-gid, block-size, reverse-list, show-size, insert-func) (flush-func, error-func): Just variables that are needed by Eshell implementation of ls. (eshell/l): Equivalent with calling `eshell/dl` with "-glah" in front of arguments. (durand-eshell-group-entries-by-directory): Obsolete function. (durand-eshell-ls-dirs-first): A variable that controls whether to group directories first. (durand-eshell-ls-sort-entries, eshell-ls-sort-entries): An advice around the original sorting function, which groups directories into a separate list, to be sorted before the rest. This approach respects the original sorting method, and performs no extra sorting, as opposed to the previous approach.
2023-02-24eshell: group directories first in lsJSDurand
* eshell-conf.el: Add an advice to `eshell-ls-sort-entries` so that directories always come before non-directories.
2023-02-22eshell: Add wildcard expansion support in GraphViz command.JSDurand
* eshell-conf.el (eshell/gv, eshell-gv): Now a star in the filename will trigger the wildcard expansion. This is much more flexible and convenient when dealing with many files.
2023-02-21eshell: Allow setting directory in the gv commandJSDurand
* eshell-conf.el (eshell/gv, eshell-gv): Now we can set the directory that contains the output directory explicitly in the command line. It used to be hard-coded to be the root of the project. It is more flexible now.
2023-02-21eshell: graphviz files managementJSDurand
Handle compilation and removal of graphviz files easily. * .gitignore: Ignore elpa files that appear out of thin air. * eshell-conf.el (eshell/gv): Entry point for handling graphviz files. (vc): Use vc to find the project root. (eshell-gv): The internal function to handle graphviz files.
2023-01-07emacs-29 changesJSDurand
These are some changes when I migrate to emacs version 29.
2023-01-06theme + eshell: adapt to version 4.JSDurand
theme.el: Modus-themes now uses a great system for customising faces, and this change in configuration adapts to that update. eshell-conf.el: Besides adapting to the new Modus-themes, also add some visual commands for better display.
2022-11-07eshell: j jumps immediately with only one matchJSDurand
* eshell-conf.el (eshell-j): Previously this function does not filter the candidates according to the user-specified predicate, and presents the user with a `completing-read' that has only one candidate. I do not know why this was implemented like that, so I am trying the approach of jumping immediately when given a predicate that only matches one candidate. Let us see how this goes then.
2022-04-11misc: eshell, common and trampJSDurand
* eshell-conf.el: Load eshell-tramp. I am not sure if this is necessary, though. * tramp-conf.el (vc-ignore-dir-regexp): Ignore version control on remote hosts. Maybe I will change my mind in the future. * common.el (Info-mode-map): Evaluate this only after info is loaded.
2022-01-27eshell: expand dotsJSDurand
* eshell-conf.el (durand-eshell-expand-dots): Replace multiple dots by correct syntax. (eshell-expand-input-functions): Add to this variable so that Eshell automatically expands dots.
2022-01-26eshell: load em-termJSDurand
2021-12-24eshell-conf: delete redundant paragraph in a docJSDurand
2021-09-13eshell-conf: Fix docs and bookmark handlerJSDurand
* eshell-conf.el (durand-eshell-bookmark-jump, eshell-bookmark-jump): Fix the bookmark handler so that it does not pop to the buffer automatically, which thus allows to open the bookmark in another window.
2021-09-06eshell: formatting and a time comparisonJSDurand
* eshell-conf.el (eshell-current-command-stop): I shall compare both the number of seconds and the number of micro-seconds. Fix other formatting issues as well.
2021-08-10change: eshell-clearJSDurand
* eshell-conf.el (eshell-clear): Now it accepts a numeric argument. This will now preserve NUM many prompts.
2021-07-31new: yt-url in eshellJSDurand
* eshell-conf.el (eshell/yt-url): The function that eshell calls. (eshell-yt-url): The function that actually does the job. It converts the name of the video to its corresponding YouTube URL, and either saves it to the kill-ring or opens it in the default external browser.
2021-07-27fix: require type-breakJSDurand
* eshell-conf.el (require 'type-break): This is required by the function #'timep.
2021-07-19fix: fix bugsJSDurand
* eshell-conf.el (eshell-current-command-stop): I forgot to remove a message statement that was for the debugging purpose only. (durand-eshell-emit-prompt): Add necessary text properties for eshell to function normally. (eshell-clear): Add inhibit-read-only so that we can clear even if the prompt is not after the last prompt.
2021-07-19new: track time in eshellJSDurand
Now eshell will display the elapsed time of the last command at the beginning of the prompt. * eshell-conf.el (eshell-current-command-start-time): the variable to track the start time of the commands. (eshell-prompt-time-string): this will be displayed at the prompt, if non-nil. (eshell-current-command-start): set an appropriate variable as the start time of the command. (eshell-current-command-stop): calculat the elapsed time since the last command started and convert that into a pretty string to display. (eshell-current-command-time-track): add hooks. (eshell-start-track-command-time): (eshell-stop-track-command-time): switches of the time-tracking mechanism. (#'eshell-emit-prompt): (durand-eshell-emit-prompt): advice the original function to take into account the time information. refactor: (eshell/marks): add some colors
2021-07-19fix: eshell-clearJSDurand
* eshell-conf.el (eshell-clear): Now this just clears the screen and emits a prompt, without messingup with the command history.
2021-05-18Make eshell-clear a separate function.JSDurand
* eshell-conf.el (eshell-clear): Refactor into a standalone function.
2021-02-27Further adjustments to eshell and elfeed.JSDurand
* elfeed-conf.el (durand-eshell-download-sentinel): (durand-elfeed-download-video): (elfeed-search-mode-map): (elfeed-show-mode-map): Add the ability to conveniently download videos. * eshell-conf.el (eshell/mark): Quote the shell argument properly.
2021-02-26Eshell and elfeed improvementsJSDurand
* elfeed-conf.el (elfeed-feeds): Add some more feeds. * eshell-conf.el (eshell-j): (eshell-mark-directory): Use a dedicated variable for better maintainability. (eshell/mark): Conveniently add marks. (eshell/marks): List the marks.
2021-02-22More configurationsJSDurand
Now TeX and elfeed are roughly configured.
2021-02-08Constantly growingJSDurand
A lot of improvements.