summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-07-19new: a function to calculate gradesJSDurand
* csv-conf.el (calculate-grades): This calculates the grades according to the specifications of the professor. This is but a one-time function, but might be modified for other uses later.
2021-07-19new: minimal glsl confJSDurand
* glsl-conf.el: A minimal configuration to get it working. * init.el (glsl-mode): (auto-mode-alist): Add support in init.el.
2021-07-19new: generate-pragma in c-modeJSDurand
* c-conf.el (generate-pragma): This generates a pragma for header files, and an include statement for C files.
2021-07-01wifi-bluetooth: don't clear the scanned SSIDs if not updating it.JSDurand
* wifi-bluetooth-conf.el (durand-wifi-scanned-ssids): (durand-wifi-list-sentinel): Only update durand-wifi-scanned-ssids if we are about to update it.
2021-07-01skeleton: delete the vspace{-10ex} partJSDurand
2021-07-01battery: set the threshold to 79 instead of 80JSDurand
2021-06-22basic: yet another bury-buffer bindingJSDurand
* basic.el (global-map): "H-q" is a better binding since "C-s-b" takes too many keystrokes in my opinion.
2021-06-22common: member and delete-dups convenience.JSDurand
* common.el (durand-delete-dups): This uses a custom hash-table to test for the equality. Hence it can support custom equality-tests. This function grew out of a function I wrote for eshell. (durand-member): This is a convenient function to test for membership in a list. The implementationi is nothing new. But it is convenient.
2021-06-22basic: bury-buffer bindingJSDurand
* basic.el (global-map): Bind C-s-b to bury-buffer. I found this function more and more important.
2021-06-11battery-conf: limit = 80JSDurand
* battery-conf.el (battery-mode-line-limit): I consider the battery fully charged if it is chared above 80% now.
2021-06-06init: prepare latex in the correct hookJSDurand
* init.el (prepare-tex): I was adding this to the hook LaTeX-mode-hook, which is not run until AUCTeX is loaded, but I load AUCTeX inside prepare-tex. The result is that I could not automatically load AUCTeX. Now this is fixed by using the right hook.
2021-06-05basic: sentence-end-double-spaceJSDurand
* basic.el (sentence-end-double-space): Two spaces after the end of sentences can distinguish between the end of a sentence and words that end with a period, such as abbreviations. So I prefer to put two spaces after the end of sentences now.
2021-06-05common: a better face-remap-remove-relativeJSDurand
* common.el (durand-face-remap-remove-relative): (face-remap-remove-relative): Now uses `remove' to remove elements, which compares elements by `equal' instead of `eq'.
2021-06-05modeline: try to reduce the mode line clutterJSDurand
* battery-conf.el (durand-battery-pmset): Whether it is AC or battery should be clear with one letter: A or B. * modeline.el (modeline-minor-modes-name-len-max): minor modes should be more important, as it is not easy to discover which of them are enabled. (modeline-buffer-name-len-max): And the name of the buffer is easily checked by a manual function call, so is less important to me.
2021-06-04basic: Preserve system clipboardJSDurand
2021-06-02modeline: Reduce upper bound for the minor modes.JSDurand
* modeline.el (modeline-minor-modes-name-len-max): Now set to 20. For a long mode line, some compromises are unavoidable. Among the elements of a mode line, I think the information about minor modes should be compromised first. (modeline-format-minor-modes): Reformat.
2021-06-02ibuffer: Fix a bug in deleting buffers.JSDurand
* ibuffer.el (durand-ibuffer-clear): I would like to delete those buffers that are not marked, but I wrote the opposite behaviour. This commit fixes the bug.
2021-06-01Add a key-binding to clear buffers in ibuffer.JSDurand
* ibuffer.el (durand-ibuffer-clear): This is my frequent operation. (ibuffer-mode-map): Bind to a key.
2021-05-30completion-conf: Unbind space in completion mapsJSDurand
* completion-conf.el (minibuffer-local-completion-map) (minibuffer-local-must-match-map): Since typing space is quite common, it is not very convenient to use space to complete words, as the binding otherwise would.
2021-05-29theme: Update to version 1.14 of the modus themes.JSDurand
* theme.el (modus-themes-mode-line): I tried to use the accented version, but a plain 3d effect works better for me. I also use the borderless option, since it feels good as well. (modus-themes-org-blocks): Just update to the new name of the original option. (modus-themes-subtle-line-numbers): Remove the background from the line numbers. (modus-themes-region): I still prefer to override the syntactic highlighting when selecting regions.
2021-05-29modeline: do not use bars anymoreJSDurand
* modeline.el (modeline-format-left): Remove the commented line about bars. (modeline-bar-width): (modeline-bar-height): (modeline-bar-color): (modeline-bar-color-inactive): (modeline-bar-img): (modeline-bar-img-inactive): (modeline-refresh-bars): (modeline-format-bar): These are removed.
2021-05-29Remove these two files from the git repositoryJSDurand
* desktop: * recentf:
2021-05-26modeline: Fix an error about matching non-stringsJSDurand
* modeline.el (modeline-length): I was matching a variable whose can be nil. Check if it is a string before matching solves the potential problem. Also remove two files that need not be under version-control.
2021-05-25Refine the mechanism of joining WIFI ports.JSDurand
* wifi-bluetooth-conf.el (durand-wifi-ssid-machine-alist): The port EX has the same password as that of 4F. (durand-wifi-scanned-ssids): (durand-wifi-list-sentinel): Record the scanned ports in a variable for the purpose of completion. (durand-wifi-join-history): Record the history (durand-wifi-join-port): Use `completing-read' to read the port.
2021-05-22Add mechanism to automatically connect to Known WIFIs.JSDurand
* wifi-bluetooth-conf.el (durand-wifi-ssid-machine-alist): This stores a list of associations between the SSID of WIFI and its machine name that can be used to search for passwords. (durand-wifi-join-port): This can now join two WIFI ports that I still remember the passwords, which is enough for now.
2021-05-20Fix a bug of switch-to-buffer-same-mode.JSDurand
* ibuffer.el (switch-to-buffer-same-mode): Fix a bug.
2021-05-20Refactor WIFI list command.JSDurand
* wifi-bluetooth-conf.el (durand-wifi-list-ports): The default behaviour should only list the currently connected WIFI port, instead of listing every available port. (durand-wifi-list-sentinel): The sentinel should report if WIFI is not enabled.
2021-05-20Add a function to switch to buffers of the same major modeJSDurand
* ibuffer.el (switch-to-buffer-same-mode): This turns out to be convenient, contrary to what I thought at first.
2021-05-20Experiments with notmuch.JSDurand
These are experiments with notmuch.
2021-05-20Refactor wifi and bluetooth settings to a separate fileJSDurand
* view-conf.el (durand-wifi-on-p): (durand-bluetooth-on-p): (durand-wifi-filter): (durand-bluetooth-filter): (durand-wifi-or-bluetooth): (global-map): These are moved to wifi-bluetooth-conf.el now. * wifi-bluetooth-conf.el (durand-wifi-on-p): (durand-bluetooth-on-p): (durand-wifi-filter): (durand-bluetooth-filter): (durand-wifi-toggle): (durand-bluetooth-toggle): These are old functions. (durand-wifi-executable): The name of an executable to manage wifis. (durand-wifi-bluetooth-buffer): A shared buffer for wifi-related commands. (durand-wifi-list-ports): List all available WIFI ports or the currently connected one, if the optional argument is non-nil. (durand-wifi-join-port): Join a port. This is still buggy. (durand-wifi-list-sentinel): The sentinel for the list-port function. (durand-wifi-join-filter): The filter to inform the user of the output of the command. This is important since currently the command will only error out for some reason. (global-map): Bind the functions to appropriate key sequences.
2021-05-20Add a function to fit window to bufferJSDurand
* common.el: This originated from the novel package.
2021-05-18Bind compile to C-c C-c.JSDurand
* c-conf.el (c-mode-map): I don't know why I didn't bind this earlier.
2021-05-18Use duckduckgo to search.JSDurand
The original search engine I use was the instance of searx by Luke Smith, which went down for some reason.
2021-05-18Make eshell-clear a separate function.JSDurand
* eshell-conf.el (eshell-clear): Refactor into a standalone function.
2021-05-16Fixes some errors in loading TeXJSDurand
2021-04-20Use pdf-view to view PDF files if available.JSDurand
* eww-conf.el (mailcap-prefer-mailcap-viewers): (mailcap-user-mime-data): Set the user-data since otherwise this should be set via a dedicated mailcap file, which is cumbersome to specify pdf-view-mode in Emacs, as far as I know.
2021-04-20Calculate the widths of non-Latin characters correctly.JSDurand
* modeline.el (modeline-format-main): Now use the following function to calculate the correct widths. (modeline-length): Use the name and the decomposition of a character to determine if a character should take 1.7 columns instead of 1 column.
2021-04-20Also display time and battery in the dashboardJSDurand
* modeline.el (modeline-format-dashboard): We need a right part to display time and battery. (modeline-dashboard-format-right): The original part (modeline-dashboard-format-left): The time and the battery are displayed here.
2021-04-20Display battery and time on the modeline.JSDurand
Now I can use Emacs in the full-screen mode. * battery-conf.el (battery-pmset): (durand-battery-pmset): Override the default so that it also offers temperature information. (battery-mode-line-format): (battery-mode-line-limit): (battery-update-interval): (battery-load-low): (battery-load-critical): Some sane defaults. * init.el (durand-battery): (durand-time): Advice to load the configurations and display at the same time. * time-conf.el (display-time-format): (display-time-interval): (display-time-default-load-average): (display-time-mail-directory): (display-time-mail-function): (display-time-use-mail-icon): (display-time-mail-string): (display-time-mail-face): Sane defaults.
2021-04-20Initial configuration of c-modeJSDurand
* c-conf.el (c-macro-preprocessor): Set it to a sane default. * init.el (prepare-c): Lazy load c-conf.el
2021-04-20Adaptation of prot-ewwJSDurand
* eww-conf.el (eww): (eww-search-prefix): (global-map): (durand-eww-map): (eww-link-keymap): (eww-mode-map): (dired-mode-map): (eww-buffers-mode-map): (eww-bookmark-mode-map): (shr-use-colors): (shr-use-fonts): (shr-max-image-proportion): (shr-image-animate): (shr-width): (shr-discard-aria-hidden): (shr-cookie-policy): (eww-name-separator): (eww-rename-buffer): (eww-after-render-hook): (eww-back-url): (eww-forward-url): (eww-visited-history): (eww-record-history): (eww-dwim): (eww-visit-bookmark): (eww-visit-url-on-page): (eww-jump-to-url-on-page): (eww-occur-feed-regexp): (eww-find-feed): * view-conf.el (durand-view-map): (durand-open-targets):
2021-04-20Fix info directoryJSDurand
* bongo.el : I was appending a list with a non-list, essentially.
2021-04-18eww-retrieve-command can be fasterJSDurand
* eww-conf.el : It is faster to download pages using wget. But emacs-28 is still unusable for me at this moment.
2021-04-18Repeat is wonderfulJSDurand
* basic.el (global-map): Bind repeat to s-z. It is wonderful to be able to repeat a command occasionally.
2021-04-11Scroll to left and rightJSDurand
This comes in handy when one enlarges the PDF image. * pdf.el (pdf-view-mode-map):
2021-04-11Hyper experimentJSDurand
Adding some hyper key-bindings. * basic.el (ns-right-alternate-modifier): (ns-function-modifier): (ns-pop-up-frames): (ns-use-native-fullscreen): (ns-use-proxy-icon): (global-map): * org-conf.el (global-map): * view-conf.el (durand-view-map):
2021-04-03Moving by paragraphs.JSDurand
* view-conf.el (durand-scroll-next-paragraph): (durand-scroll-prev-paragraph): These functions were born while I wrote my little novel-reading package. And I grew used to this convenient functionality, so I want to add that here. (durand-focus-map): Bind in the focus map.