Last active
August 31, 2020 11:49
-
-
Save benkio/1ee433de03aecc77842b7f279f6d76ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
cup all -y | |
$packages = "ccleaner", "youtube-dl", "xsltproc", "nodejs.install", "purescript", "javaruntime", "7zip", "vlc", "git", "ubuntu.font", "dotnetfx", "wget", "emacs", "gimp", "cygwin", "calibre", "curl", "ffmpeg", "pandoc", "f.lux", "scala", "sbt", "filezilla", "telegram", "directx", "teamviewer.host", "tixati", "discord", "battle.net", "imagemagick", "hexchat", "sumatrapdf", "firefox", "jdk8", "urban-terror", "ag", "lilypond" | |
Foreach ($package in $packages){ | |
cinst $package -y | |
} | |
New-Item -ItemType directory -Path .\workspace | |
cd C:\Users\benkio | |
Remove-Item -Force -Recurse .\.emacs.d\ | |
git clone https://bitbucket.org/benkio89/.emacs.d.git .\.emacs.d | |
npm install -g typescript | |
############################################################################### | |
# script from here: https://www.emacswiki.org/emacs/EmacsMsWindowsIntegration#toc8 | |
############################################################################### | |
# Path to startup file | |
$startup_file = "$([Environment]::GetFolderPath('Startup'))\StartEmacsServer.bat" | |
# Introduce variable HOME: | |
# 1. for simplicity | |
# 2. runemacs.exe expects it to be | |
# | |
# %APPDATA% is chosen because runemacs.exe operates there | |
# https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html#Find-Init | |
# https://www.gnu.org/software/emacs/manual/html_node/emacs/General-Variables.html#General-Variables | |
New-Item $startup_file -type file | |
Set-Content -Path $startup_file -Value "set HOME=%APPDATA%" | |
# Clean previous server file info first | |
Add-Content -Path $startup_file -Value "del /Q ""%HOME%/.emacs.d/server/*""" | |
Add-Content -Path $startup_file -Value "runemacs.exe --daemon" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment