https://github.com/myterminal/emacs-profiles
Configuration profiles for Emacs
https://github.com/myterminal/emacs-profiles
configuration-profile emacs
Last synced: 26 days ago
JSON representation
Configuration profiles for Emacs
- Host: GitHub
- URL: https://github.com/myterminal/emacs-profiles
- Owner: myTerminal
- License: gpl-3.0
- Created: 2016-06-04T12:51:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T05:11:22.000Z (almost 5 years ago)
- Last Synced: 2026-03-08T04:05:37.094Z (4 months ago)
- Topics: configuration-profile, emacs
- Language: Emacs Lisp
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emacs-profiles
[](https://marmalade-repo.org/packages/emacs-profiles)
[](https://www.gnu.org/licenses/gpl.html)
Configuration profiles for Emacs.
You can use emacs-profiles to switch between multiple sets of configuration at a couple of key-presses.
## Installation
### Manual
Save the file *emacs-profiles.el* to disk and add the directory containing it to `load-path` using a command in your *.emacs* file like:
(add-to-list 'load-path "~/.emacs.d/")
The above line assumes that you've placed the file into the Emacs directory '.emacs.d'.
Start the package with:
(require 'emacs-profiles)
### Marmalade
If you have Marmalade added as a repository to your Emacs, you can just install *emacs-profiles* with
M-x package-install emacs-profiles RET
## Usage
Set a key-binding to open the configuration menu that displays all configured configurations.
(global-set-key (kbd "C-M-`") 'emacs-profiles-show-menu)
You can also define your configuration as
(emacs-profiles-set-profiles-data
(list '("1"
"Office"
(lambda ()
(invert-face 'default)))
'("2"
"Home"
(lambda ()
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)))))
Each item in the list should contain three elements:
* Key to be pressed to load the profile
* Name of the profile
* A function to be executed against the key, the function that contains all scripts to be executed to apply that particular configuration.
Lastly, you can also call `emacs-profiles-show-menu` at startup so that you can choose which profile to start Emacs in when you start it.
## Dependencies
* [prompt-you](https://github.com/myTerminal/prompt-you)