My Emacs configuration.
Перейти к файлу
Daniel - 63eeefcb8e
Ignore backlink items tagged HOLD in default checklist
Items tagged with HOLD should be ignored in normal processes and should
thus not appear as backlinks.  Items tagged WAIT are supposed to appear,
though, and are not excluded from the list of relevant backlinks.
2024-03-25 17:48:50 +01:00
elpa Update dash 2024-03-06 21:12:01 +01:00
eshell Add Eshell alias for viewing files like with less 2023-01-21 10:49:56 +01:00
site-lisp Ignore backlink items tagged HOLD in default checklist 2024-03-25 17:48:50 +01:00
snippets/text-mode Add another shortcut for standard git commit message 2020-01-19 17:22:09 +01:00
themes Do not show links in Org mode with bold face 2022-06-09 18:56:13 +02:00
.gitignore Extending lsp-mode configuration 2023-12-27 21:45:41 +01:00
LICENSE Remove copyright date line and upate date in LICENSE file 2022-11-19 16:17:50 +01:00
Makefile Ensure sandbox link to local .emacs.d directory is created properly 2020-11-21 12:14:00 +01:00
README.org Do not include a local copy of use-package anymore 2023-10-01 17:09:27 +02:00
early-init.el Disable garbage collection during Emacs startup 2024-03-10 11:14:48 +01:00
init.el Ignore scheduled entries on Waiting-For list altogether 2024-03-24 13:44:19 +01:00

README.org

Daniels Emacs Configuration

My personal Emacs Configuration, containing bits of code collected from around the web. Have fun with it!

This configuration is known to work with Emacs 29.1 (and later) on Debian GNU/Linux and Windows 11 (sigh).

Features

  • Tight integration of Org Mode, via customizable variables for different types of Org Mode files, predefined capture templates, hydras, continuous clocking, and more.
  • Gnus integration, including a general setup to easily add SMTP configuration for multiple email accounts.
  • Extended completion support via helm, ivy, and company.
  • Magit and Projectile.
  • A custom “start menu” based on helm (via C-x g), allowing to access bookmarks, default applications, and files; see the documentation of db/helm-shortcuts for more details.
  • More or less usable integration into Windows (necessary for work, sorry for that).
  • A usable Eshell configuration.
  • Support for various programming languages (Emacs Lisp, Clojure, Python, LaTeX, Perl, Haskell, …)

Initial Setup

To use this configuration, either clone or download a copy of this repository and place it in your ~/.emacs.d directory (beware that under Windows, your home directory may be anywhere, check the variable %HOME% for this).

If you use a proxy to access the Wild Internet™, make sure that the environment variables http_proxy and https_proxy are set with the correct values. Upon first start, Emacs will download all some packages it deems essential, so please be patient. All subsequent starts should be much faster.

To make most of this configuration (and Emacs in general), a standard GNU (POSIX?) user space is required. Under GNU/Linux system, this is standard, but for Windows this may be a problem. The easiest way to get a minimal GNU user space is to install Git for Windows and augment your %PATH% to include C:\Program Files\Git\usr\bin\ (or some-such). This way, executables like bash, find, grep, and gpg are available to Emacs, but please be aware that the naming convention for directories is different for these tools from the Windows standard, i.e., /c/Windows/System32/ instead of C:\Windows\System32\. In general, this should not be a problem, though.

Customization

This configuration allows to make some customization without touching the code to adapt it to the need of the respective user. This is done using the Customize interface of Emacs. Some of the variables are set to some default values different from the default default values. However, those settings are done before loading user customization, and thus can be overwritten by the latter.

Additionally, some variables are provided that allow for additional configuration. Those are located in the personal-settings Customization group, which see, and come with some (and hopefully sufficient) documentation.

Adding custom code

If customizing variables is not enough, you can of course always add you custom code directly in the configuration. However, this may make future merges difficult (in case you want to stay up-to-date with this configuration, that is). To this end, a special variables called db/after-init-load-files can be customized to contain a list of files that will be loaded as the last step during startup of Emacs. This way, custom code stays outside of the main configuration and future merges should pass without conflicts.

Structure

The main configuration is available in the usual /dbo/.emacs.d/src/branch/master/init.el file, with additional functionality distributed over files in the /dbo/.emacs.d/src/branch/master/site-lisp directory. Some private data (like customization) is outsourced into a separate directory named private, and is not included in this repository. The configuration should work nevertheless, even without these private files.

The main init.el file consists mostly of variable assignments, use-package declarations, initializing the package subsystem, and loading customizations. The main lifting is done by the db/run-init function, which is attached to after-init-hook in init.el. This way, all necessary local hooks and autoloads are set up by init.el, and the db/run-init functions only activates modes needed for every session, sets default keybindings, hydras, and global hooks. It also imports some environment variables and starts the server. Any additional packages are only loaded when required. Additionally, after all this, db/run-init loads all files contained in db/after-init-load-files, in the order given in that list.

Known Limitations

Under Windows, using Tramp with ssh from git does not seem to work because no ssh-askpass is included. Use plink instead, TRAMP has builtin support for it.

License

This configuration is available under the MIT license, see /dbo/.emacs.d/src/branch/master/LICENSE for details.