summaryrefslogtreecommitdiff
path: root/text-conf.el
AgeCommit message (Collapse)Author
2024-02-22text: Use pixel width for centeringJSDurand
* text-conf.el (center-string-in-width, make-block): Use the function `string-pixel-width` to calculate the correct widths of strings, in centering the strings.
2023-07-30text: `make-center-block`JSDurand
* text-conf.el (make-center-block): Make a "centered" block surrounding the selected region or line. This seems similar to the so-called source blocks in "Org-mode" , at least in my eyes. (find-max-nonblank-len-in-region): A helper function to calculate the maximal length of non-blank lines within a region. Here the length refers to the length of the non-blank portions of the lines.
2022-01-29Refactor: save something and tidy things up.JSDurand
* bongo.el: Try to implement a mechanism to play subtitles along with the music, but it is not yet finished. * subed-conf.el: Make it work. * text-conf.el (insert-section-heading): Delete unnecessary debugging mechanisms.
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-08-04fix: make text-conf stand aloneJSDurand
* text-conf.el (correct-length): Was using a function from modeline configurations. I might want to revert back to that function in the future. (center-string-in-width): Was using a function from my novel-reading package. (vc-diff): Add an autoload.
2021-07-30new: add a dwim function for viewing diffJSDurand
* text-conf.el (durand-diff-dwim): Either diff with file or vc-diff, depending on whether the buffer is modified, whether the file is associated with a registered file, whether the argument is (list 16). (global-map): Bind to the global map.
2021-07-27new: insert time-stampJSDurand
* text-conf.el (global-map): (durand-insert-timestamp): Add a function to insert timestamps and bind it to H-= in the global map. This is inspired by a similar function of Protesilaos.
2021-02-08Constantly growingJSDurand
A lot of improvements.
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-19QoL changes.JSDurand
* bongo.el: Use header-line now. Try to improve the tick. * dired-conf.el: Require dired-x. * elisp.el: Hide Eldoc on the mode line. * text-conf.el (assq): Hide auto-fill-mode on the mode line. * modeline.el (modeline-format-left): Display minor modes information. (modeline-minor-modes-name-len-max): Max length of displayed minor modes. (modeline-format-minor-modes): Display minor modes information. (durand-mouse-minor-mode-menu): Make the default minor mode menu work with my custom mode line. * rime-conf.el ("emacs-rime"): Bind a key to set the input method to rime in the minibuffer, so that I can use this input method to search the buffer, for example.
2021-01-09temporary stateJSDurand