Skip to content

Instantly share code, notes, and snippets.

#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
typedef void (*test_function_t)();
// Why is `__attribute__((aligned(16)))` necessary? With the default
// alignment of 8, we print a large negative value for limit and then
// don't print any `a` fields.
struct __attribute__((aligned(16))) foo
(defun etc-maybe-recenter ()
(unless (or
;; don't interfere with erc scroll-to-bottom
(derived-mode-p 'erc-mode 'term-mode 'shell-mode 'eshell-mode)
(not (eq (get-buffer-window (current-buffer) t) (selected-window)))
(equal (window-point) (point-max))
(region-active-p)
)
(recenter)))