summaryrefslogtreecommitdiff
path: root/eww-conf.el
AgeCommit message (Collapse)Author
2023-12-13EWW: Use xwidgets in SHR.JSDurand
2023-01-08bookmark: add types to handlers and use that for groupingJSDurand
* bookmark-conf.el ("durand"): Use types of bookmark handlers as group headings. (pdf-view-bookmark-jump-handler): Give it the type "PDF". (durand-external-jump): Give it the type "External". * eww-conf.el: Give the handler for EWW the type "EWW".
2022-08-29eww: integrate with elpherJSDurand
* eww-conf.el: ("elpher", eww-open-elpher, #'eww-browse-url, #'eww): Add integration with Elpher. So far it seems nice.
2022-02-18eww: add a useless checkJSDurand
* eww-conf.el (durand-eww-bookmark-jump): Check if an existing EWW buffer is a live buffer before we determine that an EWW buffer already exists. But in my experiments this does not change anything, so...
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-14eww-conf: eww-download-directory might be a functionJSDurand
* eww-conf.el (durand-eww-download): eww-download-directory might be a function.
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-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-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-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-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-08-28Use my searx instance to searchJSDurand
2021-08-02new: eww-confJSDurand
* eww-conf.el (browse-url-browser-function) (browse-url-secondary-browser-function): Now the default is EWW, and the secondary is the external browser. (eww-mode-map): Bind my download function. (durand-eww-download-callback, durand-eww-download): Customized download function that suits my needs.
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-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-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-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-03-06Use searx as the default search engine.JSDurand
This seems to be both faster and to produce more results.
2021-03-03Use duckduckgo lite.JSDurand
This is supposed to be faster.
2021-01-20More QoL changesJSDurand
* basic.el (auto-fill-function): Hide auto-fill-function from the mode line. (auto-revert-mode): Hide auto-revert-mode from the mode line. * common.el (durand-hide-minor-mode): Use a simple macro to facilitate hiding. * elisp.el (eldoc-mode): Use a macro to hide instead. * eww-conf.el (eww-bookmarks-directory): Start Configuring EWW. * init.el ("durand-simple"): My simple utilities. ("search-conf.el"): Configuring searching. * search-conf.el (search-whitespace-regexp): White space as wild cards (isearch-lax-whitespace): as above (isearch-lazy-count): Count the matches (isearch-allow-scroll): Scrolling while searching (durand-search-replace-symbol): For quick refactoring * text-conf.el (assq): Hide using the macro instead.