straight.el
diff-hl
straight.el | diff-hl | |
---|---|---|
1 | 6 | |
2,182 | 868 | |
- | - | |
6.8 | 6.0 | |
over 1 year ago | 5 days ago | |
Emacs Lisp | Emacs Lisp | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
straight.el
-
Strategies for literate config in org-mode
;;; init.el -*- lexical-binding: t; -*- (require 'subr-x) ; for string-remove-suffix ;;; We will be using no-littering, but we need first to tell straight to keep ;;; repo and build directories out of the way (defun neo/litter-directory (&optional leaf-dir version) (let* ((dir (directory-file-name (file-name-directory user-emacs-directory))) (distribution (string-remove-suffix ".d" dir)) (package-dir (if leaf-dir leaf-dir "")) (version-dir (if version version ""))) (file-name-as-directory (format "%s-save.d/%s/%s" distribution package-dir version-dir)))) (setq straight-base-dir (neo/litter-directory)) (setq straight-build-dir (neo/litter-directory "straight/build" emacs-version)) ;;; streaight.el bootstrap code from https://github.com/raxod502/straight.el#getting-started ;;; NOTE: the directory used to be user-emacs-directory, we are moving packages ;;; out of our configuration and in places compatible with no-littering (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" straight-base-dir)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) ;;; Install org from upstream repo before using org-babel, or we would ;;; get whatever old version is distributed with Emacs. (straight-use-package '(org :type git :repo "https://code.orgmode.org/bzg/org-mode.git" :local-repo "org" :depth full :pre-build (straight-recipes-org-elpa--build) :build (:not autoloads) :files (:defaults "lisp/*.el" ("etc/styles/" "etc/styles/*")))) (straight-use-package 'use-package) ;; Configure use-package to use straight.el by default (use-package straight :custom (straight-use-package-by-default t)) (require 'ox-org) (with-temp-buffer (insert-file-contents "~/neo/neo.org") ;; TODO should export to a different file and move to this only if different ;; this would allow us to cache neo-flat.el. (let* ((flat-neo-config-dir (neo/litter-directory "neo")) (flat-neo-config-file (expand-file-name "neo-flat.org" flat-neo-config-dir))) (make-directory flat-neo-config-dir t) (org-export-to-file 'org flat-neo-config-file) (org-babel-load-file flat-neo-config-file)))
diff-hl
-
What are some must-have packages for emacs?
Yeah. I also like diff-hl even though it's a little buggy.
-
Git Gutter in Emacs
In my experience https://github.com/dgutov/diff-hl works better.
-
Modern Git-Gutter in Emacs
Strange, diff-hl works extremely well and looks nice (and also works with other vcs) - some themes have not set appropriate faces but that is very easy to fix. diff-hl
-
Your first taste of emacs
diff-hl Git diff markers in modified buffers. Nice to see which lines you've added, changed and deleted, visually.
-
Beginner Emacs (Evil) questions to help me improve my setup. Help strongly appreciated
not sure. google suggests diff-hl. anyway magit is great - learning it will be beneficial
-
How to get sublime-like gitgutter in Emacs?
For those, who don't want to search: https://github.com/dgutov/diff-hl (it's on MELPA, called diff-hl).
What are some alternatives?
quelpa-use-package - Emacs quelpa handler for use-package
git-gutter-fringe - Fringe version of git-gutter.el
dotfiles - Literate configuration for linux box and emacs.
emacs-doom-themes - A megapack of themes for GNU Emacs. [Moved to: https://github.com/doomemacs/themes]
poetry.el - Python dependency management and packaging in Emacs
emacs-light - My lightweight bare necessities emacs config
gitsigns.nvim - Git integration for buffers
.emacs.d - My personal Emacs config with any quirks, oddities, bugs, and man-eating errors I live with on a daily basis.
emacs-which-key - Emacs package that displays available keybindings in popup
straight.el - 🍀 Next-generation, purely functional package manager for the Emacs hacker.
smartparens - Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
use-package - A use-package declaration for simplifying your .emacs