summaryrefslogtreecommitdiff
path: root/common.el
AgeCommit message (Collapse)Author
2023-01-09completion: add functions to jump between minibuffer and completionsJSDurand
* common.el (durand-completion-goto-minibuffer): Go to the *Completions* buffer or the minibuffer, depending on whether we are *in the minibuffer or the *Completions* buffer and the target buffer *exists. * completion-conf.el (minibuffer-local-completion-map) (completion-list-mode-map): Bind the function in the right map.
2023-01-06ibuffer: Try to re-invent the wheel of exporting buffers to ibuffer.JSDurand
2022-11-17bongo: Add cacheJSDurand
* common.el (durand-take): Declare as pure and side-effect free. * durand-bongo.el (bongo-sub-redisplay): Do nothing when not playing, to avoid clearing the subtitles buffer when stopped. (durand-bongo-time-process): A helper to replace nil values by 0 in the return value of `parse-time-string'. (bongo-sub-status-string): Use a cache to avoid searching for the subtitle every second.
2022-04-11misc: eshell, common and trampJSDurand
* eshell-conf.el: Load eshell-tramp. I am not sure if this is necessary, though. * tramp-conf.el (vc-ignore-dir-regexp): Ignore version control on remote hosts. Maybe I will change my mind in the future. * common.el (Info-mode-map): Evaluate this only after info is loaded.
2022-04-10Move the tramp configuration to tramp-conf.JSDurand
* common.el: Tramp configurations should be put in a separate file. * tramp-conf.el (tramp-methods): Fix the copy arg. (backup-directory-alist): Disable backups for Tramp. (tramp-allow-unsafe-temporary-files): Don't ask this every time.
2022-04-10common: key-binding in Info and fix a tramp problemJSDurand
* common.el (Info-mode-map): Add a key-binding of Info-forward-node to the closing parenthesis. The motivation is that the closing square bracket is hard to press on my keyboard layout. (tramp): The "rsync" external method seems to pass the option "-s" to rsync, while the rsync program on my computer does not accept this option. So I remove that option.
2022-02-09add configurations for rustJSDurand
* common.el (common): * init.el (rustic-mode): (assoc): * rust-conf.el ("dash.el"): ("s.el"): ("f.el"): (let-alist): ("markdown-mode"): (project): ("rust-mode"): (seq): ("spinner.el"): ("xterm-color"): ("eglot"): (eglot-mode-map): (eglot-autoshutdown): ("rustic"): (rustic-lsp-client): (rustic-format-on-save): (eglot-managed-mode-hook): (durand-rust-mode-hook): (durand-rustic-cargo-doc-a): (#'rustic-cargo-doc): (rust-conf):
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-08-28* common.el (durand-take): Convenient functionJSDurand
2021-08-17new function: durand-copy-line-dwimJSDurand
* basic.el (global-map): Bind to "s-;". * common.el (durand-copy-line-dwim): This meets my needs to copy or duplicate lines.
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-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-05-20Add a function to fit window to bufferJSDurand
* common.el: This originated from the novel package.
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-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-02-08Constantly growingJSDurand
A lot of improvements.
2021-01-29Change the directory to .emacs.d now.JSDurand
Now I don't have to use a special command to launch Emacs. And the configuration files are placed in the normal position now.
2021-01-27Further configurationsJSDurand
* basic.el (eval-expression-print-length): (eval-expression-print-level): Now echo are will print without limits. (winner): Enable winner-mode at start up. (input-decode-map): (key-translation-map): Translate ESC to make the following key modified by control. (bookmark-completing-read): (durand-bookmark-completing-read): Now it won't ask me for confirmation about my choices. * init.el ("durand-chercher-pdf"): Further enhance the convenience of viewing PDFs. ("embark-conf.el"): Now I don't use embark anymore. * view-conf.el (durand-view-map): Add my own way of viewing things. (durand-open-targets): These are the things I can open. (durand-open-object): Open things quickly.
2021-01-24More custom functions and adjust for custom completion frameworkJSDurand
* LICENSE: Add GPLv3. * basic.el (durand-enlarge-window): (durand-shrink-window): (durand-enlarge-window-horizontally): (durand-shrink-window-horizontally): Now I can easily maximize or minimize windows. * comb/orderless-conf.el ("orderless"): Now I try to use my own completion framework. * common.el (durand-embark-scroll-down-or-go-to-completions): (durand-embark-scroll-up-or-go-to-completions): (durand-completion-scroll-down-or-go-to-minibuffer): (durand-completion-scroll-up-or-go-to-minibuffer): Move these functions here since they do not belong to the completion framework in my opinion. (register): (register-val-jump-to): Rewrite this method so that it does not have to ask me if I want to open a file while jumping. * completion-conf.el: My intended completion framework, which is still work in progress. * init.el ("comb/orderless-conf.el"): ("completion-conf.el"): Adjust things accordingly. ("durand-simple"): My custom functions for viewing and for opening things. * modeline.el (modeline-propertize): (modeline-format-minor-modes): (modeline-format-major-mode): Now the macro `modeline-propertize' won't override properties that it does not intend to define. This has the effect that the properties of the original constructs will go through and have effect. (modeline-format-main): Make sure the space has a positive length. (modeline-format-buffer-name): Make sure the length does not exceed half the width of the window.
2021-01-22Regular updatesJSDurand
In the course of configuring Emacs there are numerous changes to make. This is one regular step.
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.
2021-01-17Tweak more things.JSDurand
* basic.el (recenter-positions): In effect nothing changed. (prot-pulse-line): Puling the line. (pulse): Useful built-in library. (durand-pulse-pulse-line): My own tweak. (durand-pulse-recenter-top): Recenter and pulse. * init.el (prepare-in-hook-once): Make it interactive. (global-map): Add Org-mode bindings. ("durand-chercher-pdf"): Search PDFs quickly. * modeline.el (modeline-format-left): Remove the vertical bar. * org-conf.el (org-adapt-indentation) (org-modules) (org-hide-emphasis-markers) (org-hide-macro-markers) (org-hide-leading-stars): Steal some configurations from Protesilaos. (global-map) (org-mode-map): Add Org-mode bindings. (durand-pulse-pulse-line): (org-follow-link-hook): Pulse and recenter when following the link.
2021-01-13A temporary intermeidate stepJSDurand
Now I got almost every functionality that we need, including pdf, mu4e, magit, et cetera.
2021-01-09temporary stateJSDurand