carbonnow is an Emacs package that lets you quickly create beautiful code screenshots using Carbon, all without leaving Emacs.
- Capture code snippets effortlessly with
M-x carbonnow-create-snapshot - Customize themes, fonts, padding, shadows, and other styling options
- Automatically detects the programming language from the major mode
- Supports all Carbon themes and fonts
- Fine-tune appearance with various configuration options
Clone the repository and add it to your Emacs setup:
(add-to-list 'load-path "/path/to/carbonnow.el")
(require 'carbonnow)If you use straight.el, you can install it with:
(straight-use-package
'(carbonnow :type git :host github :repo "dimiro1/carbonnow"))Or with use-package and straight.el:
(use-package carbonnow
:straight (:type git :host github :repo "dimiro1/carbonnow")
:bind ("C-c c s" . carbonnow-create-snapshot))- Highlight the code snippet you want to capture.
- Run
M-x carbonnow-create-snapshot. - Your browser will open with Carbon, pre-filled with your code and settings.
Customize the look and feel by running:
M-x customize-group RET carbonnow RETOptions include:
carbonnow-theme: Pick from various syntax themes.carbonnow-font-family: Choose from various monospace fonts.carbonnow-font-size: Adjust text size.carbonnow-line-height: Tweak line spacing.carbonnow-background: Set a custom background color.carbonnow-window-theme: Change the window decoration style.carbonnow-drop-shadow: Enable or disable drop shadows.carbonnow-line-numbers: Toggle line numbers.carbonnow-watermark: Show or hide the Carbon watermark.
This package integrates with Carbon, a fantastic tool for sharing beautiful code snippets as images.