summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2021-04-03Fix Info directory having wrong value at startupJSDurand
* bongo.el: I used to set Info-directory-list to the directory of bongo at startup. This causes Info to not initialize that variable, and as a consequence, the Info will not be started correctly, before I fix the value of that variable. Now this problem is fixed.
2021-03-26Bind novel and require autoinsert.JSDurand
Two small edits: * skeleton-conf.el (autoinsert): Make this useful function available * by default. * view-conf.el (durand-view-map): Bind novel to a key.
2021-03-26Require clock and elementJSDurand
In order to avoid some errors while loading Org-mode.
2021-03-26Poor man's live update of completion candidatesJSDurand
* completion-conf.el (minibuffer-local-completion-map): (durand-completion-display-after-change): (durand-completion-toggle-display): This will toggle between live updating and not live updating.
2021-03-18Don't hide emphasis markersJSDurand
2021-03-16Byte-compiling two functionsJSDurand
* common.el (durand-display-in-one-window): (durand-completion-scroll-up-or-go-to-minibuffer): (intentionally-disabled-bind): Byte-compiling these functions.
2021-03-15Stylistic changesJSDurand
* tex-conf.el ("/usr/local/share/emacs/site-lisp/auctex/tex.el"): ("/usr/local/share/emacs/site-lisp/auctex/latex.el"): Load the files explicitly.
2021-03-15Add an option to override the dashboard buffer.JSDurand
Sometimes the dashboard is renderred weirdly, so I want to have a convenient way to reset the dashboard buffer.
2021-03-08Modify the template for LaTeXJSDurand
* skeleton-conf.el (insert-tex): The format of the dates should use "en-dashes" instead of "hyphens".
2021-03-08More settings with LaTeXJSDurand
* tex-conf.el (TeX-after-compilation-finished-functions): Revert the PDF after compilation. (pdf-sync-forward-display-action): (pdf-sync-backward-display-action): Display the PDF in the same window. (TeX-source-correlate-start-server): Start syncronization between the TeX buffer and the PDF buffer. (font-latex-fontify-sectioning): Make sections bigger. (LaTeX-mode-hook): Add my own preparation function. (open-paren): Insert a pair of parentheses and put the cursor in between. (open-curly): Insert a pair of curly braces and put the cursor in between. (open-bracket): Insert a pair of square brackets and put the cursor in between. (durand-delete-pair): When the character before point is an open bracket, delete the corresponding closing bracket as well. (end-exit-paren): When the character after point is a closing bracket, exit out of it instead of inserting a closing bracket. (open-back-paren): If the character before point is a closing bracket, go back one character into the brackets. (parens-require-spaces): Don't require spaces around parentheses. (durand-prepare-latex): Treat the escape character as a symbol, turn on auto-fill, and don't require spaces around parentheses. (durand-latex-delete-newline): Delete a newline before point, if any. (LaTeX-section-hook): Delete the newline between the section and the label, so that chktex doesn't complain about that space.
2021-03-06Disable C-zJSDurand
It is annoying to press that key-binding by accident, as that will minimize Emacs.
2021-03-06Encryption configurations and aliasesJSDurand
* gnus-conf.el (mml-secure-openpgp-encrypt-to-self): So that I can see my own encrypted mails. (gnus-buttonized-mime-types): To see signature verification results. (mm-decrypt-option): Automatic decryption. (mm-verify-option): Automatic verification. (message-mail-alias-type): Use abbreviations for message headers.
2021-03-06Use searx as the default search engine.JSDurand
This seems to be both faster and to produce more results.
2021-03-06Update the dashboard image.JSDurand
* dashboard.el (dashboard): Use a new image of a cute cat.
2021-03-03Use duckduckgo lite.JSDurand
This is supposed to be faster.
2021-03-03TeX, skeleton, and eww.JSDurand
Configure TeX and add some skeletons, and bind a key to eww.
2021-03-03Don't store bookmark when capturing.JSDurand
2021-03-03Add org-journal.JSDurand
* org-journal-conf.el: ("org-journal"): This might be an ideal way of recording diaries which is integrated with Emacs. (org-journal-dir): Directory. (org-journal-file-type): Use a monthly journal.
2021-03-03Adjust summary line format.JSDurand
* gnus-conf.el (gnus-summary-line-format): Don't show line numbers, and highlight some parts of the summary line when the mouse is over it.
2021-03-03Add some feeds and a filter for downloading.JSDurand
* elfeed-conf.el (elfeed-feeds): More feeds. (durand-eshell-download-filter): Replace the previous string before inserting new strings. (durand-elfeed-download-video): Reminds of the start of the download, and uses the filter.
2021-03-03Completion for yankJSDurand
* basic.el (global-map): Bind it. * common.el (yank-complete-rotated-kill-ring): Rotating the kill ring so that the last kill is at the top. (yank-complete-history): History variable. (yank-complete): Use `completing-read' for choosing some text that was killed before.
2021-03-03Add two abbrevsJSDurand
* abbrev_defs: dk => define-key and df => defun
2021-03-01Refine durand-view-processJSDurand
The function list-processes is really useful.
2021-03-01Add the first skeletonJSDurand
* init.el (prepare-skeletons): Lazy load this. * skeleton-conf.el (skeleton-conf): (insert-define-key): This is only a primitive skeleton. I will add more in the future.
2021-03-01Refine the focus commandJSDurand
2021-02-28Bind durand-mu4e and lazy load eww.JSDurand
* init.el (global-map): Bind durand-mu4e. (eww): ("eww-conf.el"): Lazy load eww.