Skip to content

Doomwhite/emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Windows Emacs configuration

TABLE OF CONTENTS

Dependencies

  • Windows Emacs 29+
    • And its bin folder in the PATH
  • IBM Plex Mono font
  • HOME environment variable to the parent folder of the configuration

Powershell aliases

  • Client
    function mx {
        emacsclientw $args
    }
    function mxc {
        emacsclientw -c -n $args
    }
        
  • Server
    functoin mxd {
        emacs --daemon $args
    }
    function mxs {
        $emacsScriptPath = "$env:HOME\.config\emacs\scripts\windows\StartEmacsServer.bat"
        Start-Process -FilePath $emacsScriptPath -NoNewWindow
    }
        

How to use the server script

  • Automatically start the server on startup
    • Make a symlink of the script
    • Open the startup folder of windows
      • Win+R > shell::startup
    • Place the symlink in the startup folder
    • The state of the startup script if verifiable in the task manager
  • If you are having issues creating the server to attach, then try this:
    • Changing the server’s folder author to the current user, instead of the Admin.
      • Select the folder.
      • Go to its properties.
      • Go to the ‘Security’ tab.
      • Click on the ‘Advanced’ button.
      • On the top of the window will have the field ‘Owner’, change it to your user.
  • Or try debugging the server to find the error source.
    • emacs –daemon –debug-init

How to set a taskbar shortcut for the client that occupies only 1 slot

  • A change in the Windows registry will be required, it will change the Details part of the properties from every file in OS.
    • Create a string value in HKEY_CLASSES_ROOT\lnkfile called ‘FullDetails’
    • Set its value to:
      • prop:System.PropGroup.Description;System.ItemTypeText;System.Comment;System.Link.TargetParsingPath;System.AppUserModel.ID;System.ItemFolderPathDisplay;prop:System.PropGroup.FileSystem;System.ItemNameDisplay;System.Size;System.DateCreated;System.DateModified;System.FileAttributes;*System.OfflineAvailability;*System.OfflineStatus;*System.SharedWith;*System.FileOwner;*System.ComputerName
    • Make a shortcut for the emacsclient such as:
      • Target: emacsclientw.exe -c -n
    • Go to the shortcut’s properties.
    • Go to the Details tab.
    • Find a field called ‘AppUserModelId’.
    • Change it to the Emacs executable same ID.
      • Currently it’s ‘GNU.Emacs’.

Adding the client to the gitconfig editor

  • Simply add this to the config:
    • editor = emacsclientw -a runemacs

All-the-icons are not showing up

How to set the “Opens With” by file extension

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors