Skip to content

Rational-Curiosity/.emacs.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.emacs.d personal configuration

I hope this may help you. All .el files are ready to byte-compile.

Features

img/code_completion.png

  • Code completion with icomplete-/fido/ pressing TAB.
  • Minimal mode-line info.
  • Complete IDE with eglot (optional lsp-mode) and icomplete without company, ivy, helm
  • Avoid Text is read-only minibuffer error inserting typed character at the end without narrowing.

img/eshell_prompt.png

  • A lot of eshell and comint improvements.
  • Extensive EXWM customization.

Installation

Remove emacs init files: ~/.emacs, ~/.emacs.el or ~/.emacs.d/

Download repository in ~/.emacs.d/

Start emacs.

Byte-compile

Compile all configuration files with byte-compile-emacs-config interactive function. Without lsp-mode, smartparents or company packages the compilation of lsp-config.el, smartparents-custom-config.el or company-extension-config.el fails, there is no problem because this files are not required without respective packages.

Moving the Ctrl key

You can find web pages talking about swap Ctrl and Caps Lock keys, you can do this M-x xkb-swap-ctrl-caps or undo with C-u M-x xkb-swap-ctrl-caps (setxkbmap is required in your system).

But I prefer swap Ctrl and AltGr M-x xkb-swap-ralt-ctrl (program xkbcomp required). Then Alt and Ctrl become symmetrical keys, and then press modification keys with thumbs. Restore normal keyboard with C-u M-x xkb-swap-ralt-ctrl.

Another option is swap Ctrl and Win keys with M-x xkb-swap-ctrl-win (setxkbmap required), restore with C-u M-x xkb-swap-ctrl-win.

Modal mode

Disabled by default, enable or toggle it with M-x modal-global-mode-toggle.

Translates uppercase key into ctrl+key. Examples:

  • Exit emacs pressing X C (translated into C-x C-c).
  • Open file pressing X F (translated into C-x C-f).
  • Goto end of line pressing E (translated into C-e).
  • Goto beginning of line pressing A (translated into C-a).

EXWM configuration

Copy cache/xinitrc.emacs to ~/.xinitrc and see /EXWM/ requirements.

I recommend that you boot into console mode How to boot ubuntu 20.04 into text / command console.

Requirements

  • Emacs 27
  • ripgrep - High performance search in files
    sudo apt install ripgrep
        
  • fd - High performance find files
    sudo apt install fd-find
        
  • xkbcomp - swap Ctrl and AltGr
    sudo apt install x11-xkb-utils
        
  • vmtouch - Emacs config folder ~/.emacs.d/ into memory (fast startup)
    sudo apt install vmtouch
        

EXWM requirements

  • compton - Transparency
    sudo apt install compton
        
  • volumeicon - Tray volume indicator
    sudo apt install volumeicon
        
  • NetworkManager - Network manager with indicator
    sudo apt install network-manager
        

About

My personal emacs settings. Thanks Emacs community.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published