summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2021-10-30blist: external groupsJSDurand
* bookmark-conf.el (blist-filter-groups): ("external"): (durand-set-external-bookmark): (durand-external-jump):
2021-10-24* tex-conf.el (durand-o-things-list): add pair of barsJSDurand
2021-09-23gnus-conf: add a greeting when replying professorsJSDurand
* gnus-conf.el (gnus-posting-styles): Add a greeting when replying professors.
2021-09-21gnus-conf: use Chinese FROM field when neededJSDurand
* gnus-conf.el (gnus-parameters, gnus-posting-styles): When replying to my professors, use the Chinese FROM field.
2021-09-21bookmark-conf: Preserve annotation when overriding it.JSDurand
* bookmark-conf.el (durand-bookmark-set-preserve-annotation-advice) (bookmark-set-internal): Add an around advice to preserve the annotation when desired.
2021-09-21* bookmark-conf.el: Display bookmarks in the same window.JSDurand
2021-09-20* view-conf.el (durand-focus): New define-minor-mode syntax.JSDurand
2021-09-19Fit the annotation buffer to windowJSDurand
* bookmark-conf.el: (durand-bookmark-jump-fit-to-window, bookmark-jump): Add an :after advice to fit the annotation buffer to its window. For some reason this is not done by default.
2021-09-19* init.el (global-map): Hyper-g => GnusJSDurand
2021-09-17* bookmark-conf.el (blist-expert): I am not an expert.JSDurand
2021-09-17eww-conf: use an advice to override pop-to-bufferJSDurand
* eww-conf.el (durand-pop-to-buffer-advice, durand-eww-bookmark-jump): A temporary advice is better than a temporary re-definition: at least we don't have to do all those unnecessary extra work to load window.el now. But this approach is still risky, as we override the basic function `pop-to-buffer', which might lead to unpredictable consequences. For now, it seems to work, though.
2021-09-16eww-conf: Use a giant hackJSDurand
* eww-conf.el (durand-eww-bookmark-jump): Now we don't have to copy the definition of eww. This is much more future-compatible. Instead we use a giant hack that re-defines the built-in function pop-to-buffer, and then restores its definition later, by loading the window.el file. This may be viewed as even uglier. Haha.
2021-09-15eww bookmark: fix position jumpingJSDurand
* eww-conf.el (durand-eww-bookmark-jump): I forgot to give the bookmark handler the saved position, so it might jump to weird positions. Now this is fixed.
2021-09-15change the order of filter groups of bookmarksJSDurand
2021-09-15EWW: integrate with the built-in bookmark frameworkJSDurand
* bookmark-conf.el (blist-eww-p): Group EWW bookmarks together. * eww-conf.el (durand-eww-bookmark-make-record) (durand-eww-set-bookmark-record-function, eww-mode-hook): Make records for EWW buffers. (durand-eww-bookmark-jump): Jump to EWW bookmarks.
2021-09-15bookmark: add Info groupJSDurand
* bookmark-conf.el (blist-filter-groups, blist-info-p): Add the info group.
2021-09-13bookmark: stylistic changesJSDurand
2021-09-13add a feed as a potential backupJSDurand
* elfeed-conf.el (elfeed-feeds): It is really not a good idea to keep the list of feeds in this file. I shall move this list into some other place in the future.
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-13Add configurations for my package blistJSDurand
Just adding my custom groups and setting some custom variables.
2021-09-09* view-conf.el (durand-open-targets): setq + defvarJSDurand
This combination is more convenient if I want to change the value of the variable.
2021-09-06org: conform to XHTML 1.0 strict in the websiteJSDurand
* org-conf.el (durand-org-publish-html-advice): I used the tag "time", which is not supported by XHTML 1.0 strict. Also the attribute "datetime" is invalid. So I use the "p" tag with a "subtitle" attribute to display the date/time information below the title of each article/post. Now the websites all conform to the XHTML 1.0 strict standard, which is a good thing, I surmise.
2021-09-06load outline-conf in the activation functionJSDurand
* init.el (durand-maybe-enable-outline): This is the activation function for outline-minor-mode, for me. So it makes sense to define this initially as a function to load my configurations, so that I can use the functionalities even if I haven't loaded my configurations yet.
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-09-06bind ESC to apply meta!JSDurand
META is more important than CONTROL, since, for example, M-x is most conveniently input using META-x. With M-x, one can literally input any command we want, so it is per chance the most important modifier, after all.
2021-09-05org: display feeds page in the sidebarJSDurand
* org-conf.el (durand-org-publish-sidebar): It is better to display the page containing the feeds in the sidebar, in my opinion.
2021-09-05org: Exclude javascript and add date/time infoJSDurand
* org-conf.el (org-html-head-include-scripts): Don't include that snippet here. (durand-org-publish-html-advice, org-html-publish-to-html): Advice the publishing function to include a date/time information in each post.
2021-09-02bongo: bulk replace song names in playlistsJSDurand
* bongo.el (durand-bongo-replace-name-in-playlist-files): When I moved some songs to sub-directories, I would like to quickly change the song names in the playlist files quickly, otherwise when playing songs from the playlists, they will become broken links. This function provides exactly this functionality. For the usage see the documentation of this function.
2021-08-31* .gitignore: ignore tramp record file as wellJSDurand
2021-08-31bongo: handle errors in timerJSDurand
* bongo.el (durand-bongo-mpv-player-tick): Now if the timer encounters an error, it will stop itself. Hopefully this can prevent Emacs from running the tick timer indefinitely that sometimes happens for no reason.
2021-08-29Generate Atom feeds for the websiteJSDurand
* org-conf.el (durand-sitemap-custom-string-alist) (durand-org-publish-sitemap): Add links to the atom files. (durand-org-post-process): Call `durand-org-generate-atom-feed' in this function. (durand-org-atom-titles-alist): Associate titles and feed files with the project name. (durand-org-atom-preamble, durand-org-atom-entry-template) (durand-org-atom-postamble): The generated Atom file is controlled by these template variables. (durand-org-atom-format-time): The zone of the time should be in a specific format that no time format string provides. So I write this function to provide this formatting. (durand-org-generate-atom-feed): Apply the templates to generate the Atom feed files.
2021-08-28Add more feeds and a playing featureJSDurand
* elfeed-conf.el (elfeed-feeds): More feeds. (durand-elfeed-play-video, durand-eshell-download-play-sentinel) (durand-elfeed-download-video, elfeed-search-mode-map) (elfeed-show-mode-map): Add a function to instantaneously play the video in the feed.