summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-12Use the package "keycast"JSDurand
Now I can conveniently display my key-bindings in the mode line.
2022-01-12.gitignore: Hide calc.el which is generated by Calc.JSDurand
2022-01-12c-conf: add test files by a key-bindingJSDurand
Add a function to generate a skeleton test file automatically, and bind that to a key.
2022-01-10ibuffer: don't delete default passlist.JSDurand
* ibuffer.el (durand-reset-clearlist): The `durand-default-clear-passlist' should be preserved on the list.
2022-01-10view-conf: fix the function to convert youtube video to URL.JSDurand
This change is necessary as yt-dlp uses a different format for the output files than youtube-dl.
2022-01-10elfeed-conf: use yt-dlp instead of youtube-dlJSDurand
2022-01-08gnus-conf: add an alternate identityJSDurand
2022-01-04C-n/p should also scroll to the completion list as wellJSDurand
* completion-conf.el (minibuffer-local-completion-map) (completion-list-mode-map): Bind C-n and C-p to move the cursor to the completion list buffer if the cursor is already at the bottom or the top of the minibuffer.
2021-12-31mail: extending `durand-quote-message'JSDurand
2021-12-31gnus-conf: minor adjustments including the levelsJSDurand
2021-12-31bookmark-conf: use a named function for sortingJSDurand
2021-12-28bookmark-conf: The era of automation comes by!JSDurand
Adapt to use an automatic filter group.
2021-12-28elisp: Help flymake use the correct load-pathJSDurand
* elisp.el (elisp-macro-expand): Refine the doc string. (elisp-update-load-path, emacs-lisp-mode-hook): Help flymake use the correct load-path.
2021-12-27gnus: bind a key for general searchesJSDurand
* gnus-conf.el (durand-gnus-notmuch-query-history): A dedicated history variable is better than some buttons, I guess. (durand-gnus-notmuch-query, gnus-group-mode-map): Bind to a key for easy interactive uses.
2021-12-27mail: Add a quoting command.JSDurand
* mail.el (durand-quote-messag): Add a command to conveniently quote mails, and store in the kill-ring. And bind it to various modes where this might be used.
2021-12-27gnus-conf: simplify the query functionJSDurand
2021-12-26gnus-conf: Integration with notmuchJSDurand
2021-12-26Use defalias rather than fsetJSDurand
* common.el (durand-display-in-one-window) (durand-completion-scroll-up-or-go-to-minibuffer) (intentionally-disabled-bind): * completion-conf.el (durand-completion-toggle-display): * eww-conf.el (global-map): defalias has the advantage that one can find the file of the definition from the help buffer while fset cannot.
2021-12-26gnus-conf and mail: clean up formatsJSDurand
This commit mostly cleans up the formats.
2021-12-24notmuch-conf: correctly load notmuchJSDurand
2021-12-24gnus-conf: view HTML mails in an external browserJSDurand
2021-12-24eshell-conf: delete redundant paragraph in a docJSDurand
2021-12-24gnus: choose an identityJSDurand
* gnus-conf.el (mml-secure-openpgp-encrypt-to-self): Encrypt to myself. (gnus-ignored-from-addresses): New mail address. (gnus-parameters): Random change. (durand-identities, durand-choose-identity, message-mode-map): I have multiple identities now, so it is important to choose the correct identity to use.
2021-12-24Use multiple SMTP servers nowJSDurand
* gnus-conf.el (gnus-secondary-select-methods): Add mailboxes corresponding to the new server. (smtpmail-smtp-user): Just a random change. (durand-smtp-servers): The association list of my servers. (durand-set-smtp-server-message-send-and-exit): Set the server automagically. (message-mode-map): Bind C-c C-c to the magic command. * mail.el (mu4e-get-mail-command): Specify exactly what channels should be updated by a call to mbsync, just to be more precise and pedantic.
2021-12-23mail: small fixesJSDurand
* mail.el (message-mode-hook): set fill-column to 70, and set the smtp user name correctly, so that Emacs can find my password.
2021-12-21text-conf: Clean up and new durand-elide-region commandJSDurand
* text-conf.el (correct-length): Obsolete now. (center-string-in-width): Use string-width. (durand-elide-region, text-mode-map): New command to elide a region of texts.
2021-12-19ibuffer: a custom columnJSDurand
* ibuffer.el (protect): A custom column. (ibuffer-formats): Add the newly defined column to the list of formats.
2021-12-19modeline: clean format and use truncate-string-to-widthJSDurand
* modeline.el (modeline-format-main): Using string-width to calculate the widths of strings is more accurate than my previous hand-made function. (modeline-length): This is no longer needed and now marked as obsolete. It is not deleted entirely since per chance some other places are still using it. (modeline-format-minor-modes, modeline-format-buffer-name): Use truncate-string-to-width instead.
2021-12-18ibuffer: reset or remove killed buffersJSDurand
* ibuffer.el (durand-reset-clearlist): Reset or remove killed buffers from the clear list.
2021-12-18ibuffer: protect buffersJSDurand
* ibuffer.el (durand-default-clear-passlist, durand-clear-passlist): Add a default value variable. (durand-reset-clearlist): Add a function to reset since we are starting to manipulate this variable. (durand-born-equal): Buffer-OR-Name equal. (durand-ibuffer-clear): Make sure the dashboard buffer is correctly recentered, even if it is not displayed right after the clearing operation. (durand-ibuffer-reset-marks): Reset the mark of the current line if this mark is added "automagically" by the macro which defines an ibuffer operation. (durand-ibuffer-restore-mark-before-advice): Check if there are no marks before the operation. In this case a mark will be "automagically" added, and we need to remove that mark later. (ibuffer-do-protect): Protect marked buffers so that they will not be cleared automatically. (ibuffer-do-unprotect): Unprotect the buffers so we can clear them quickly again. (ibuffer-mode-map): Bind the operations. (durand-directory): Modify this filter so that it works correctly.
2021-12-18dired-conf: clean up the formatsJSDurand
2021-12-18add highlights for dired and change time formatJSDurand
* dired-conf.el (dired-listing-switches): change the time style to the long iso style. (dired-mode-hook): add hl-line-mode. * init.el ("protesilaos/lin"): activate for dired-mode-hook as well.
2021-12-14bongo: bind x to stop and kill the bufferJSDurand
* bongo.el ("bongo-playlist-mode-map"): Bind x to the following command. (durand-bongo-stop-and-exit): Stop playing, and stop the player, and then kill the buffer.
2021-12-14eww-conf: eww-download-directory might be a functionJSDurand
* eww-conf.el (durand-eww-download): eww-download-directory might be a function.
2021-12-14* dashboard.el (dashboard): set default directory correctlyJSDurand
2021-12-11ibuffer: enable hl-line-mode in ibufferJSDurand
2021-12-11* bookmark-conf.el (bookmark-set-fringe-mark): no indicatorsJSDurand
2021-12-11eww-conf: stringp adds securityJSDurand
* eww-conf.el (durand-eww-bookmark-jump): Using stringp to check if a variable is really a string, so that the function that depends on it being a string won't fail unexpectedly (to the user).
2021-12-10basic: capslock becomes hyperJSDurand
* basic.el (input-decode-map, key-translation-map): I was used to press fn key as the hyper modifier. But after an update of the operating system, for some reason the fn key activates some shortcuts combined with some other keys. For example, fn+a activates the "dock" and fn+n activates a "control center" of sorts. I use H-a for org-agenda and H-n for reading novels. Both are frequently used key-bindings. The most unfortunate is that I cannot find a way to deactivate these shortcuts. So I am forced to find other key-bindings. It turns out that I didn't use the capslock for any useful bindings yet, thus I guess this is a perfect fit.
2021-12-10org-conf: add a commentJSDurand
Mac OS has a keyboard short cut for H-a, and I don't know how to disable that!
2021-12-09eww-conf: modify the depth of a hookJSDurand
* eww-conf.el (eww-after-render-hook, durand-eww-bookmark-jump): make sure this hook is added after the hook that sets the readable mode to nil, so that the readable mode is correctly set to t after a jump.
2021-12-09eww-conf: record the readability status as wellJSDurand
* eww-conf.el (durand-eww-readable-p): a variable that records if the current buffer is in the readable mode. (eww-non-readable-h, eww-readable-h): set the buffer to the correct readable mode. (eww-after-render-hook): add a hook to set the buffer to non-readable mode. (#'eww-readable): add an advice to set the buffer to readable mode. (durand-eww-bookmark-make-record): record the readability status of the buffer. (durand-eww-bookmark-jump): if the bookmark records a readable buffer, enter readable mode when opening it. * org-conf.el (durand-org-publish-sitemap): fix a small typo
2021-12-07* gnus-conf.el ("mm-discouraged-alternatives"): prefer textJSDurand
2021-12-06* org-conf.el (org-structure-template-alist): proof template.JSDurand
2021-12-06view-conf: fix cursor when moving paragraphs.JSDurand
* view-conf.el (durand-scroll-next-paragraph): Fix cursor when moving paragraphs, so that the cursor stays at the top of the window.
2021-12-06LIN Is NoticeableJSDurand
* bookmark-conf.el (blist-mode-hook): Highlight the current line. * init.el ("protesilaos/lin"): Add the package to remap some highlights.
2021-11-19eww-conf.el: browser function improvement.JSDurand
* eww-conf.el (browse-url-browser-function): Use my own custom browser function. (durand-browse-url): Has the ability to open URL in an external browser if given a non-nil second argument, just like `shr-browse-url'. This is more convenient since some links cannot be properly opened in EWW.
2021-11-19* bookmark-conf.el (COOL): change name to avoid conflicts.JSDurand
2021-11-09* basic.el (global-map): Disable "iconify-frame"JSDurand
2021-11-06add NTU cool bookmarkJSDurand
* bookmark-conf.el: add a bookmark to open NTU cool. * view-conf.el (durand-open-targets): Add a link to an online Tibetan dictionary.