Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Christian Hopps choppsv1

🏠
Working from home
View GitHub Profile
@choppsv1
choppsv1 / vpp-auto-format.el
Created May 19, 2019
Auto-format vpp C files on save in Emacs using "indent"
View vpp-auto-format.el
(defun vpp-format-buffer ()
(if (and (eq major-mode 'c++-mode)
(boundp 'clang-format-buffer))
(clang-format-buffer)
(vpp-indent-format-buffer)))
(defun vpp-maybe-format-buffer ()
"Reformat buffer if contains VPP magic"
(when (save-excursion
@choppsv1
choppsv1 / emacs-25.1-24bit.diff
Last active Mar 14, 2017
True color (24-bit) terminal support for Emacs 25.1
View emacs-25.1-24bit.diff
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
View keybase.md

Keybase proof

I hereby claim:

  • I am choppsv1 on github.
  • I am chopps (https://keybase.io/chopps) on keybase.
  • I have a public key whose fingerprint is 9B9E B21F F345 FA6D 451D AEA5 2E1D 830E D7B8 3025

To claim this, I am signing this object:

View iterm-custom-keys.py
# -*- coding: utf-8 -*-#
# December 31 2015, Christian Hopps <chopps@gmail.com>
#
# Copyright (c) 2015-2016 by Christian E. Hopps.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@choppsv1
choppsv1 / tmux-2.1-24bit.diff
Created Nov 11, 2015
True color (24-bit) terminal support for tmux-2.1
View tmux-2.1-24bit.diff
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary changes I've made were to support ":" as a delimeter as well
@choppsv1
choppsv1 / tmux-2.1-24bit.diff
Last active Dec 13, 2015
True color (24-bit) terminal support for tmux-2.1
View tmux-2.1-24bit.diff
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary changes I've made were to support ":" as a delimeter as well
@choppsv1
choppsv1 / emacs-24.5-24bit.diff
Created May 17, 2015
True color (24-bit) terminal support for Emacs 24.5
View emacs-24.5-24bit.diff
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
@choppsv1
choppsv1 / emacs-24.4-24bit.diff
Last active Sep 14, 2017
True color (24-bit) terminal support for Emacs 24.4
View emacs-24.4-24bit.diff
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
@choppsv1
choppsv1 / tmux-24.diff
Last active Dec 21, 2018
True color (24-bit) terminal support for tmux-1.9a and tmux-2.0
View tmux-24.diff
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary change I made was to support ":" as a delimeter as well
@choppsv1
choppsv1 / emacs-24.3-24bit.diff
Last active May 27, 2016
True color (24-bit) terminal support for emacs-24.3
View emacs-24.3-24bit.diff
This diff is a modified version of a diff written by Rüdiger Sonderfeld.
The original diff can be found here:
http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html
To enable the feature one must set one of 2 environment variables either
ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the
latter will use semi-colon seperators used by other terminals (and also
supported by iterm development branch).
You can’t perform that action at this time.