Skip to content

Instantly share code, notes, and snippets.

@ctrlShiftBryan
Forked from marcwebbie/compile_emacs.sh
Created August 9, 2016 15:31
Show Gist options
  • Save ctrlShiftBryan/f9ab7e9ee88740e4a75148156d09ecba to your computer and use it in GitHub Desktop.
Save ctrlShiftBryan/f9ab7e9ee88740e4a75148156d09ecba to your computer and use it in GitHub Desktop.

Revisions

  1. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,9 @@ cd .emacs.d
    # postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no #--with-tiff=no && make && sudo make install'
    #}

    # Generate TAGS manually
    #find . -regex ".*\(haml$\|rb$\|erb\)" | etags -

    # compile emacs from git
    #git clone git://git.savannah.gnu.org/emacs.git
    #cd emacs
  2. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -28,8 +28,8 @@ cd .emacs.d
    # Other actions
    ##########################
    # Add aliases on linux
    alias emacsdaemon="/usr/local/bin/emacs --daemon"
    alias ec='emacsclient -c -a "" $*'
    #alias emacsdaemon="/usr/local/bin/emacs --daemon"
    #alias ec='emacsclient -c -a "" $*'

    # one liner compile from terminal
    # https://gist.github.com/marcwebbie/27f637653fe038c530e7/raw/dac422c74ed0bdd8c846764c27aeb94ddc335732/compile_emacs.sh | sh
  3. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,8 @@
    cd /tmp

    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel

    # compile autoconf
    cd /tmp
    wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
    tar xjvf autoconf-2.68.tar.bz2
    cd autoconf-2.68/
  4. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -25,13 +25,13 @@ git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
    cd .emacs.d
    ~/.cask/bin/cask

    ##########################
    # Other actions
    ##########################
    # Add aliases on linux
    alias emacsdaemon="/usr/local/bin/emacs --daemon"
    alias ec='emacsclient -c -a "" $*'

    ##########################
    # Other actions
    ##########################
    # one liner compile from terminal
    # https://gist.github.com/marcwebbie/27f637653fe038c530e7/raw/dac422c74ed0bdd8c846764c27aeb94ddc335732/compile_emacs.sh | sh

  5. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,14 @@ cd .emacs.d
    alias emacsdaemon="/usr/local/bin/emacs --daemon"
    alias ec='emacsclient -c -a "" $*'

    # cd ~ && rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask
    ##########################
    # Other actions
    ##########################
    # one liner compile from terminal
    # https://gist.github.com/marcwebbie/27f637653fe038c530e7/raw/dac422c74ed0bdd8c846764c27aeb94ddc335732/compile_emacs.sh | sh

    # one liner reinstall config
    # cd ~ && sudo rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask

    # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
    #netinstall { 'emacs-24.3':
  6. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -16,13 +16,6 @@ cd emacs-emacs-24.3.91
    ./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install
    cd ..

    # compile emacs from git
    #git clone git://git.savannah.gnu.org/emacs.git
    #cd emacs
    #./autogen.sh
    #./configure --with-jpeg=no
    #make && sudo make install

    # install cask for emacs config management
    curl -fsSkL https://raw.github.com/cask/cask/master/go | python

    @@ -44,4 +37,11 @@ alias ec='emacsclient -c -a "" $*'
    # extracted_dir => 'emacs-24.3',
    # destination_dir => '/tmp',
    # postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no #--with-tiff=no && make && sudo make install'
    #}
    #}

    # compile emacs from git
    #git clone git://git.savannah.gnu.org/emacs.git
    #cd emacs
    #./autogen.sh
    #./configure --with-jpeg=no
    #make && sudo make install
  7. @marcwebbie marcwebbie revised this gist May 28, 2014. 1 changed file with 18 additions and 24 deletions.
    42 changes: 18 additions & 24 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,20 @@
    cd /tmp

    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel

    # compile autoconf
    wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
    tar xjvf autoconf-2.68.tar.bz2
    cd autoconf-2.68/
    ./configure && make && sudo make install
    cd ..

    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
    # compile emacs 24.3
    cd /tmp
    curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx
    cd emacs-emacs-24.3.91
    ./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install
    cd ..

    # compile emacs from git
    #git clone git://git.savannah.gnu.org/emacs.git
    @@ -17,13 +23,6 @@ sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
    #./configure --with-jpeg=no
    #make && sudo make install

    # Compile 24.3 version of emacs
    cd /tmp
    curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx
    cd emacs-emacs-24.3.91
    ./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install
    cd ..

    # install cask for emacs config management
    curl -fsSkL https://raw.github.com/cask/cask/master/go | python

    @@ -33,21 +32,16 @@ git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
    cd .emacs.d
    ~/.cask/bin/cask

    # Add env variables
    #alias es='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
    #alias emacs='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -n'
    #export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'

    # Add env variables linux
    # Add aliases on linux
    alias emacsdaemon="/usr/local/bin/emacs --daemon"
    alias ec='emacsclient -c -a "" $*'

    # cd ~ && rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask

    # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
    netinstall { 'emacs-24.3':
    url => 'https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz',
    extracted_dir => 'emacs-24.3',
    destination_dir => '/tmp',
    postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no && make && sudo make install'
    }

    # cd ~ && rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask
    #netinstall { 'emacs-24.3':
    # url => 'https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz',
    # extracted_dir => 'emacs-24.3',
    # destination_dir => '/tmp',
    # postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no #--with-tiff=no && make && sudo make install'
    #}
  8. @marcwebbie marcwebbie revised this gist May 26, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,7 @@ sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
    #make && sudo make install

    # Compile 24.3 version of emacs
    cd /tmp
    curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx
    cd emacs-emacs-24.3.91
    ./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install
  9. @marcwebbie marcwebbie revised this gist May 26, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
    # Compile 24.3 version of emacs
    curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx
    cd emacs-emacs-24.3.91
    ./autogen.sh && ./configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no && make bootstrap
    ./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install
    cd ..

    # install cask for emacs config management
  10. @marcwebbie marcwebbie revised this gist May 26, 2014. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -38,9 +38,8 @@ cd .emacs.d
    #export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'

    # Add env variables linux
    #alias emacsdaemon="/usr/local/bin/emacs --daemon"
    #alias emacs="/usr/local/bin/emacs -c -n"
    #alias ec='emacsclient -c -a "" $*'
    alias emacsdaemon="/usr/local/bin/emacs --daemon"
    alias ec='emacsclient -c -a "" $*'

    # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
    netinstall { 'emacs-24.3':
  11. @marcwebbie marcwebbie revised this gist May 26, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -40,6 +40,7 @@ cd .emacs.d
    # Add env variables linux
    #alias emacsdaemon="/usr/local/bin/emacs --daemon"
    #alias emacs="/usr/local/bin/emacs -c -n"
    #alias ec='emacsclient -c -a "" $*'

    # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
    netinstall { 'emacs-24.3':
  12. @marcwebbie marcwebbie revised this gist May 22, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -47,4 +47,6 @@ netinstall { 'emacs-24.3':
    extracted_dir => 'emacs-24.3',
    destination_dir => '/tmp',
    postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no && make && sudo make install'
    }
    }

    # cd ~ && rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask
  13. @marcwebbie marcwebbie revised this gist May 20, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -42,8 +42,8 @@ cd .emacs.d
    #alias emacs="/usr/local/bin/emacs -c -n"

    # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
    netinstall { 'postgis':
    url => 'http://postgis.refractions.net/download/postgis-1.5.5.tar.gz',
    netinstall { 'emacs-24.3':
    url => 'https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz',
    extracted_dir => 'emacs-24.3',
    destination_dir => '/tmp',
    postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no && make && sudo make install'
  14. @marcwebbie marcwebbie revised this gist May 20, 2014. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -35,4 +35,16 @@ cd .emacs.d
    # Add env variables
    #alias es='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
    #alias emacs='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -n'
    #export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'
    #export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'

    # Add env variables linux
    #alias emacsdaemon="/usr/local/bin/emacs --daemon"
    #alias emacs="/usr/local/bin/emacs -c -n"

    # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet)
    netinstall { 'postgis':
    url => 'http://postgis.refractions.net/download/postgis-1.5.5.tar.gz',
    extracted_dir => 'emacs-24.3',
    destination_dir => '/tmp',
    postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no && make && sudo make install'
    }
  15. @marcwebbie marcwebbie revised this gist May 20, 2014. 1 changed file with 12 additions and 6 deletions.
    18 changes: 12 additions & 6 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,18 @@ cd ..
    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel

    # compile emacs
    git clone git://git.savannah.gnu.org/emacs.git
    cd emacs
    ./autogen.sh
    ./configure --with-jpeg=no
    make && sudo make install
    # compile emacs from git
    #git clone git://git.savannah.gnu.org/emacs.git
    #cd emacs
    #./autogen.sh
    #./configure --with-jpeg=no
    #make && sudo make install

    # Compile 24.3 version of emacs
    curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx
    cd emacs-emacs-24.3.91
    ./autogen.sh && ./configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no && make bootstrap
    cd ..

    # install cask for emacs config management
    curl -fsSkL https://raw.github.com/cask/cask/master/go | python
  16. @marcwebbie marcwebbie revised this gist May 20, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    cd /tmp

    # install autoconf
    # compile autoconf
    wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
    tar xjvf autoconf-2.68.tar.bz2
    cd autoconf-2.68/
    @@ -10,7 +10,7 @@ cd ..
    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel

    # install emacs
    # compile emacs
    git clone git://git.savannah.gnu.org/emacs.git
    cd emacs
    ./autogen.sh
  17. @marcwebbie marcwebbie revised this gist May 20, 2014. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -19,15 +19,14 @@ make && sudo make install

    # install cask for emacs config management
    curl -fsSkL https://raw.github.com/cask/cask/master/go | python
    alias cask="~/.cask/bin/cask"

    # install config
    cd ~
    git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
    cd .emacs.d
    ./~/.cask/bin/cask
    ~/.cask/bin/cask

    # Add env variables
    alias es='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
    alias emacs='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -n'
    export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'
    #alias es='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
    #alias emacs='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -n'
    #export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'
  18. @marcwebbie marcwebbie revised this gist May 20, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ alias cask="~/.cask/bin/cask"
    cd ~
    git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
    cd .emacs.d
    cask
    ./~/.cask/bin/cask

    # Add env variables
    alias es='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
  19. @marcwebbie marcwebbie revised this gist May 18, 2014. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,9 @@ alias cask="~/.cask/bin/cask"
    cd ~
    git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
    cd .emacs.d
    cask
    cask

    # Add env variables
    alias es='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
    alias emacs='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c -n'
    export EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'
  20. @marcwebbie marcwebbie revised this gist May 16, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,14 @@
    cd /tmp

    # install autoconf
    wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
    tar xjvf autoconf-2.68.tar.bz2
    cd autoconf-2.68/
    ./configure && make && sudo make install
    cd ..

    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
    cd ..

    # install emacs
    git clone git://git.savannah.gnu.org/emacs.git
  21. @marcwebbie marcwebbie revised this gist May 16, 2014. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,14 @@ git clone git://git.savannah.gnu.org/emacs.git
    cd emacs
    ./autogen.sh
    ./configure --with-jpeg=no
    make && sudo make install
    make && sudo make install

    # install cask for emacs config management
    curl -fsSkL https://raw.github.com/cask/cask/master/go | python
    alias cask="~/.cask/bin/cask"

    # install config
    cd ~
    git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d
    cd .emacs.d
    cask
  22. @marcwebbie marcwebbie created this gist May 13, 2014.
    16 changes: 16 additions & 0 deletions compile_emacs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # install autoconf
    wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
    tar xjvf autoconf-2.68.tar.bz2
    cd autoconf-2.68/
    ./configure && make && sudo make install

    # install needed libraries
    sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
    cd ..

    # install emacs
    git clone git://git.savannah.gnu.org/emacs.git
    cd emacs
    ./autogen.sh
    ./configure --with-jpeg=no
    make && sudo make install