Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

alezost/emacs-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is obsolete and will not be updated anymore. All these utils were merged into my main emacs-config repository.

About

Some additional functions for GNU Emacs and various packages for it I use. Most of them I wrote myself (they are trivial and I didn't even bother to search for existing decisions), some I found on the wiki and in other places.

Every function and variable from this repo has a prefix utl-. It may look ugly but it makes these packages safe and you can easily try them. Even if you require every package from this repo, you will see no difference because none of the original Emacs functionality is changed (there are some advices, but they are inactive) and none of its variables is modified.

Usage

Well, if you find something useful here, you probably know what to do: just copy a function you like to your .emacs (you will surely get rid of utl- prefix) and evaluate it to try it right now.

Nowadays I use quelpa to install all the packages I use, including this emacs-utils package (my emacs config is here if someone is interested). Before that I used a manual method of generating autoloads and other stuff. Here is what I used to do in the past:

At first I added a directory with these files to load-path:

(add-to-list 'load-path "/path/to/emacs-utils")

To be able to use functions without requiring everything on emacs start, I do the following:

  • Files with general functions (like utl-window.el or utl-buffer.el) contain autoload cookies for user commands (interactive functions). I generated utils-autoloads.el with M-x update-directory-autoloads and added

    (require 'utils-autoloads)

    to .emacs. With that I don't need to require these files. You can read about autoloading in (info "(elisp) Autoload").

  • Files for specialized modes (like utl-dired.el or utl-org.el) don't have autoload cookies. For such files I add lines like the following to my .emacs:

    (eval-after-load 'gnus '(require 'utl-gnus))

    And these files are loaded only when they are needed.

About

(OBSOLETE) My additional functions for Emacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published