Comments (3)
I'm not really up to date on the Powershell situation since I rarely use Windows. Any chance you could add some instructions to the README for people that come looking for what to do?
from chemacs.
Sure, see below. I think the current script could even be modified to do the first option automatically.
In PowerShell:
- cd to where you want to keep chemacs (e.g.
cd C:\Users\$env:UserName
) - clone chemacs:
git clone https://github.com/plexus/chemacs.git
- create the
%HOME%
variable emacs uses:
[Environment]::SetEnvironmentVariable("HOME", "C:\Users\$env:UserName", "User")
- create a hardlink from chemacs's
.emacs
to your home directory:
New-Item -Path C:\Users\$env:UserName\.emacs -ItemType HardLink -Target chemacs\.emacs
Note this uses a hardlink so you don't need admin rights. Hardlinks only work on the same drive/filesystem. If you have admin rights and want to create it on a different drive, then follow the following steps instead.
I'll use D:\MySpecialHome
as the example for where you want your emacs home directory to be.
In PowerShell:
- open another PowerShell, this one as admin:
Start-Process powershell -Verb runAs
- a UAC dialog will pop up, confirm it to open the admin PowerShell
- now in the admin PowerShell, cd to where you want to keep chemacs:
cd D:\MySpecialHome
- clone chemacs:
git clone https://github.com/plexus/chemacs.git
- create the
%HOME%
variable emacs uses:
[Environment]::SetEnvironmentVariable("HOME", "D:\MySpecialHome", "User")
- create a symlink from chemacs's
.emacs
to your home directory:
New-Item -Path D:\MySpecialHome\.emacs -ItemType SymbolicLink -Target chemacs\.emacs
from chemacs.
Great! Could you add this to the README please? (i.e. pull request?)
from chemacs.
Related Issues (20)
- Cannot load default set in .emacs-profiles.el
- Environment Variable HOT 5
- spacemacs HOT 2
- Windows 10 symlink instructions
- Spacemacs needs to be the default profile to be able to restart
- chemacs is not context aware HOT 1
- realpath issue in install script HOT 3
- Chemacs not working with fish-shell on MacOS HOT 1
- No such file or directory "/home/x/.emacs.d/init.el" HOT 2
- Is there a reason to use ".emacs" instead of ".emacs.d"? HOT 2
- abbrev-file-name points to ~/.emacs.d HOT 2
- Problem with Windows installation HOT 1
- Add examples of using emacsclient HOT 6
- Feature request: functions to edit .emacs-profiles.el HOT 3
- emacsclient: unrecognized option '--with-profile' HOT 6
- '--dump-file' support? HOT 4
- Scrollbar & toolbar showing when using Doom + Chemacs HOT 3
- (Spac)emacs uses packages from wrong profile
- Have found ihsec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chemacs.