Skip to content

Instantly share code, notes, and snippets.

(defun wes:c-lineup-continuation (langelem)
(save-excursion
(let ((indent-point (cdr langelem)))
(goto-char indent-point)
(beginning-of-line nil)
(skip-chars-forward " \t")
(vector (+ (/ c-basic-offset 2) (current-column))))))
(c-add-style "sun"
'((c-basic-offset . 8)
@richlowe
richlowe / csgrep.sh
Last active May 5, 2019 22:18
csgrep: Search cscope and provide output similar enough to grep for M-x grep, :grep, etc.
#!/bin/bash
if [[ ! -f cscope.out ]]; then
print -u2 "No cscope.out"
exit 1
fi
# Common to all versions
modes[0]="symbol"; SYMBOL=0
modes[1]="definition of"; DEFINITION=1