Skip to content

Instantly share code, notes, and snippets.

@ruediger
Last active January 3, 2025 23:48
Show Gist options
  • Save ruediger/5647207 to your computer and use it in GitHub Desktop.
Save ruediger/5647207 to your computer and use it in GitHub Desktop.

Revisions

  1. ruediger revised this gist Jul 29, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions config
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,8 @@
    #[diff "css"]
    # xfuncname = "^([a-zA-Z#.@][^\\}]*)$"
    # xfuncname = "^(.*\\{)$"
    [diff "rust"]
    xfuncname = "^((fn|struct|enum|impl|trait|mod|pub mod)[^;]*)$"
    [diff "rust"] # Thanks to csabahenk
    xfuncname = "^[ \t]*(pub|)[ \t]*((fn|struct|enum|impl|trait|mod)[^;]*)$"
    [diff "exif"]
    binary = true
    # sudo apt-get install libimage-exiftool-perl
  2. ruediger revised this gist May 25, 2013. 2 changed files with 19 additions and 2 deletions.
    8 changes: 7 additions & 1 deletion attributes
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,10 @@
    *.r diff=rstats
    *.texi* diff=texinfo
    *.org diff=orgmode
    *.rs diff=rust
    *.rs diff=rust

    *.pdf diff=pdf
    *.png diff=exif
    *.jpg diff=exif
    *.jpeg diff=exif
    *.gif diff=exif
    13 changes: 12 additions & 1 deletion config
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,8 @@
    # xfuncname = "^(\\((cl-)?def(un|macro|method).*)$"
    [diff "rstats"]
    xfuncname = "^([a-zA-z.]+ <- function.*)$"
    [diff "texinfo"] # from http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=.gitattributes;h=c3b2926c78c939d94358cc63d051a70d38cfea5d;hb=HEAD
    [diff "texinfo"]
    # from http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=.gitattributes;h=c3b2926c78c939d94358cc63d051a70d38cfea5d;hb=HEAD
    xfuncname = "^@node[ \t][ \t]*\\([^,][^,]*\\)"
    [diff "orgmode"]
    xfuncname = "^(\\*+.*)$"
    @@ -12,3 +13,13 @@
    # xfuncname = "^(.*\\{)$"
    [diff "rust"]
    xfuncname = "^((fn|struct|enum|impl|trait|mod|pub mod)[^;]*)$"
    [diff "exif"]
    binary = true
    # sudo apt-get install libimage-exiftool-perl
    textconv = exiftool
    [diff "pdf"]
    textconv = pdftotext-stdout
    # sudo apt-get install pdftotext
    # copy the following to a script pdftotext-stdout somehwere in $PATH
    # #!/bin/bash
    # pdftotext "$@" -
  3. ruediger revised this gist May 25, 2013. 2 changed files with 3 additions and 2 deletions.
    1 change: 1 addition & 0 deletions attributes
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,4 @@
    *.r diff=rstats
    *.texi* diff=texinfo
    *.org diff=orgmode
    *.rs diff=rust
    4 changes: 2 additions & 2 deletions config
    Original file line number Diff line number Diff line change
    @@ -10,5 +10,5 @@
    #[diff "css"]
    # xfuncname = "^([a-zA-Z#.@][^\\}]*)$"
    # xfuncname = "^(.*\\{)$"
    #[diff "rust"]
    # xfuncname = "^((fn|struct|enum|impl|trait|mod|pub mod)[^;]*)$"
    [diff "rust"]
    xfuncname = "^((fn|struct|enum|impl|trait|mod|pub mod)[^;]*)$"
  4. ruediger created this gist May 24, 2013.
    24 changes: 24 additions & 0 deletions attributes
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    *.tex diff=tex
    *.bib diff=bibtex
    *.c diff=cpp
    *.h diff=cpp
    *.c++ diff=cpp
    *.h++ diff=cpp
    *.cpp diff=cpp
    *.hpp diff=cpp
    *.cc diff=cpp
    *.hh diff=cpp
    *.m diff=matlab
    *.py diff=python
    *.rb diff=ruby
    *.php diff=php
    *.pl diff=perl
    *.html diff=html
    *.xhtml diff=html
    *.f diff=fortran

    *.lisp diff=lisp
    *.el diff=lisp
    *.r diff=rstats
    *.texi* diff=texinfo
    *.org diff=orgmode
    14 changes: 14 additions & 0 deletions config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    [diff "lisp"]
    xfuncname = "^(\\(.*)$"
    # xfuncname = "^(\\((cl-)?def(un|macro|method).*)$"
    [diff "rstats"]
    xfuncname = "^([a-zA-z.]+ <- function.*)$"
    [diff "texinfo"] # from http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=.gitattributes;h=c3b2926c78c939d94358cc63d051a70d38cfea5d;hb=HEAD
    xfuncname = "^@node[ \t][ \t]*\\([^,][^,]*\\)"
    [diff "orgmode"]
    xfuncname = "^(\\*+.*)$"
    #[diff "css"]
    # xfuncname = "^([a-zA-Z#.@][^\\}]*)$"
    # xfuncname = "^(.*\\{)$"
    #[diff "rust"]
    # xfuncname = "^((fn|struct|enum|impl|trait|mod|pub mod)[^;]*)$"