Default: "~f %s !~P | (~P ~C %s)"
Applies to hooks:
fcc-hook
fcc-save-hook
#include <stdio.h> | |
#include "mutt/lib.h" | |
int main(int argc, char *argv[]) | |
{ | |
if (argc != 2) | |
return 1; | |
FILE *fp = fopen(argv[1], "r"); | |
if (!fp) |
#!/bin/bash | |
set -e | |
function files() | |
{ | |
find . \( -name .git -o -name queue.h -o -name 'pgpewrap.c' -o -path './debug/*' -o -path './test/*' -o -path './autosetup/*' -o -path './docs/*' \) -prune -o -type f -name '*.[ch]' -print0 | sed -z 's/^\.\///' | sort --zero-terminated | |
} | |
[ $# = 1 ] && DIR="${1%/}" || DIR="" |
# Patch syntax highlighting | |
# color normal white default | |
# Diff changes | |
color body brightgreen default "^[+].*" | |
color body brightred default "^[-].*" | |
# Diff file | |
color body green default "^[-][-][-] .*" |
#!/usr/bin/php | |
<?php | |
system("stty -icanon"); // Enable shell input | |
system("stty -echo"); // Disable characters printing | |
echo "\e[?1003h\e[?1015h\e[?1006h"; // Mouse trap all, urxvt, SGR1006 | |
function shutdown(){ // Cleaning before quiting | |
echo "\e[?1000l"; // Disable mouse trap | |
system("stty echo"); // Enable back characters printing | |
exit; // Cleaned, quit |
// gcc -o mouse mouse.c -lncursesw | |
#include <assert.h> | |
#include <ncurses.h> | |
#include <string.h> | |
WINDOW *create_newwin(int height, int width, int starty, int startx) | |
{ | |
WINDOW *local_win; | |
local_win = newwin(height, width, starty, startx); |
# To use: change gmail's settings to: | |
# enable imap: | |
# Gmail Settings | |
# Forwarding and POP/IMAP | |
# create an app password | |
# App passwords | |
# https://myaccount.google.com/security | |
set imap_login = "" | |
set imap_pass = "XXXXXXXXXXXXXXXX" |
#include <stdio.h> | |
#include <langinfo.h> | |
#include <locale.h> | |
int main(int argc, char *argv[]) | |
{ | |
setlocale(LC_ALL, ""); | |
char *expr = nl_langinfo(YESEXPR); | |
if (expr) | |
printf("%s\n", expr); |
macro index <F5> "<enter-command> source on.rc<enter>" |