Skip to content

git branch information for emacs served via UNIX sockets

Notifications You must be signed in to change notification settings

barkyq/socket_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git socket server for branch info in emacs

To load in emacs:

(require 'git-socket)
(csetq git_socket_directory "$HOME/github/")
(csetq git_socket_binary (list "PATH_TO_EXECUTABLE" "-f" (concat git_socket_directory ".tracked")))
(progn
  (init/git/socket)
  (sleep-for 0 250)
  (connect/git/process)
)

To use in modeline, use something like:

(csetq mode-line-format
 (:eval
  (let
   ((x (gethash (expand-file-name default-directory) git_socket_hash_table)))
   (if (stringp x)
    (propertize x (quote face) (quote bold))
   )
  )
 )
)

About

git branch information for emacs served via UNIX sockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published