Windows emacs configuration - windows

I use emacs on a Windows computer (I can't chose another OS as it's my work computer).
I want a smooth scrolling but I can't find where to put the configuration file. I've read things like https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but that doesn't work. Does anyone know how to do it?
Thanks.

You said you followed the instructions # https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but it didn't work. Did you try updating the system registry as suggested by https://www.gnu.org/software/emacs/manual/html_node/emacs/MS_002dWindows-Registry.html#MS_002dWindows-Registry? That is what worked for me.
I added GNU/Emacs to HKEY_LOCAL_MACHINE/SOFTWARE and added a string HOME with the directory I wanted emacs to refer to as home (C:\Users\my_user_name).
That same link will also describe the search order emacs uses and the values of Environment Variables you can set.

Related

Windows 10 add custom fonts to command line

I'm trying to add fonts to the windows command line so the Ubuntu terminal can use the pre-patched Meslo LG installed from the powerline fonts github page (see below) (so vim-airline won't have any missing special characters).
https://github.com/powerline/fonts
I've followed the tutorial here:
https://www.techrepublic.com/blog/windows-and-office/quick-tip-add-fonts-to-the-command-prompt/
I've installed the fonts successfully, so I can use the font in word.
I've tried different names for the string value and restarted several times but nothing seems to work.
I've look around online, every source offers the same advice for going through the registry editor.
I'm not sure what to do from here and I'd really appreciate some advice.
I'd also really appreciate some insight into how the registry uses the string value to match with the ttf.
EDIT 1:
Windows has a linux subsystem which you can run bash or any other terminal emulator on. In Linux you could add whatever type of font you wanted either through the CLI or GUI install.
I wanted to install Meslo LG S for powerline (the vim plugin that gives you a status bar) since patched fonts are needed that support the special characters.
As it turns out, when it comes to fonts, Windows doesn't care what you've specified. Since the terminal emulator is built on top of the cmd executable, it has the same limitations for fonts.
Rather than just moving to some other terminal emulator, I wanted to solve the problem so other people who're having the same issue with ubuntu terminal for windows 10 could get some help.
As it turns out, Meslo is not a monospace font, so it can't be used in cmd.
Knowing this, I simply chose another patched monospace font and everything works fine.
I haven't answered my question yet because I thought maybe someone with a bit more experience with MS-DOS could show an alternative.

How to create application to launch wine and Windows application

I'm trying to use "wine" on MAC osX Sierra version 10.12, wine is version 1.9.19
In the terminal I can launch Windows applications, however its a pain to have to keep typing in:
/Applications/Wine\ Staging.app/Contents/MacOS/wine ~/.wine/drive_c/Program\ Files/HeidiSQL/heidisql.exe
I've searched around for a post on how to create shortcuts/applications to add to the launchpad, but so far none of the information has led me to a working end result. Either the locations of wine is different or it just doesn't work.
I've tried creating an application script:
do shell script "/Applications/Wine Staging.app/Contents/MacOS/wine ~/.wine/drive_c/Program Files/HeidiSQL/heidisql.exe"
But this won't run either.
For anyone having the same problem, in the end I created scripts which reside in my home folder:
Launch vi, create a file called HeidiSQL, insert:
wine ~/.wine/drive_c/Program\ Files/HeidiSQL/heidisql.exe
Save and exit file, grant file execute permissions:
chmod +x HeidiSQL
Launch wine terminal and type in ./HeidiSQL to launch, I then did the same for PSPad.exe:
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/PSPad\ editor/PSPad.exe
I know this thread is a little old but I was just looking for something like this to launch HeidiSQL and I came up with these three solutions which I have tried and all of them work. I am putting my findings down here for it may help someone:
Wineskin (http://wineskin.urgesoftware.com), Playonmac (https://www.playonmac.com/en) and Winebottler
(http://winebottler.kronenberg.org)
Wineskin is a mac app that download and install (and manages, updates, etc) "wine" for you. It then creates a HeidiSQL.app (any name you want with any icon you want - but you need to configure it) around the windows.exe that includes the wine version selected and is completely self contained (does not need wine installed separately). Personally this is the neatest solution and my preferred even though there its a little more technical than Playonmac and similar to Winebottler. You need to read the instructions (which are very good) and you have choices to make as to the wine version to use and to configure the app. Noteworthy is that you need to change the windows version to XP rather than 7 or some buttons won't work.
Playonmac on the other hand is very user friendly. It has HeidiSQL listed on its website as compatible and its almost a single click install. You just select HeidiSQL from the list of programs and it will download everything you need for you. The only reason I prefer Wineskin is that it does not create a true self contained HeidiSQL.app. You can create a shortcut for it in your Applications folder but this will launch Playonmac and the app needs to be installed inside Playonmac. On the plus side, Playonmac will chose all the right settings for you to run the app correctly, the correct windows and wine version etc which is something you need to fiddle with with with Wineskin.
Winebottler again makes an app like Wineskin. The only real difference I could see is that with Wineskin the configuration app is actually part of the package whereas in Winebottler you have to recreate the package each time you make a change. I stuck with Wineskin. YMMV.

cygwin winsymlinks:native doesn't work

I'm battling with cygwin for quite a while now.
I searched far and wide on how to make cygwin create Windows-style symbolic links.
I tried the following:
export CYGWIN="winsymlinks:native"
export CYGWIN="winsymlinks:nativestrict"
export CYGWIN="winsymlinks:lnk"
I also tried exporting w/o the quotes.
I also tried from both cygwin/x86 and cygwin/x64
For the life of me - I can't get the Windows native symlinks to work.
I'm working on Windows7/64bit; cygwin version 1.7.25.
I'd love to get a solution for this one.
Thank you.
I got the same problem. In my case, I used winsymlinks:nativestrict and received an error report saying: Operation is not permitted.
This is becase of Windows UAC and the terminal emulator not being started with elevated privileges. So I run Cygwin mintty as administrator (you can right click the shortcut and choose "Run as administrator" or set the mintty shortcut property: Advanced -> Run as Administrator). After that, everything just works perfectly.
I also battled with this one for a while on Windows 7 with Cygwin.
Everything I read seemed to say that it needed export CYGWIN="winsymlinks:native", but no luck for me.
Then I read this blog http://zzamboni.org/blog/making-cygwin-windows-and-emacs-understand-th/ which said that just "winsymlinks" was all you need. Tried that and it worked beautifully :)
Just use this environment variable.
export CYGWIN="winsymlinks"
Expect it to work with Windows 10 Creator update when you enable developer mode
Something to consider:
https://github.com/git-for-windows/git/wiki/Symbolic-Links
Symbolic links are only available on Windows Vista and later, most notably not on XP
You need the SeCreateSymbolicLinkPrivilege privilege, which is by default assigned only to Administrators and guarded by UAC, but can be assigned to other users or user groups (see below).
Symbolic links on remote filesystems are disabled by default (call fsutil behavior query SymlinkEvaluation to find out)
Symbolic links will only work on NTFS, not on FAT nor exFAT
Windows' symbolic links are typed: they need to know whether they point to a directory or to a file (for this reason, Git will update the type when it finds that it is wrong)
Many programs do not understand symbolic links

Custom themes in emacs 24.2.1 on Windows causing error

So I have been able to install custom themes on my mac and linux machines, but am unable to get custom themes to work on my emacs windows installation.
I am able to add the below to my ~/.emacs file without problems:
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
When I put the command below into the ~/.emacs file:
(load-theme 'tomorrow-night t)
it is able to find the file just fine, but it stops with the following error:
Symbol's value as variable is void: <!--
I have tested this with multiple different themes (not just tomorrow-theme) and the same problem occurs, but all other plugins and additions to emacs work just fine.
Any help would be appreciated since I would enjoy to have all of my different machines have the same theming style in emacs.
Just to note, I am using Windows 8.
Solved, turns out saving .el files in windows 8 has some interesting and strange side effects. Look at comment 3 for solution.

Can I install WhizzyTeX for Emacs on a Mac (is Mac OS X a unix environment)?

I think my question is pretty stupid, but here it goes:
I am using Aquamacs, and I want to install the WhizzyTeX mode. The website for WhizzyTeX says that "it is designed for Unix platforms".
I read that Mac OS X is unix certified, but does that mean I can install WhizzyTeX on my mac? If yes, can I install and use it with Aquamacs or do I have to use the Emacs running from the terminal?
PS: I don't know whether this question should be posted here or on SuperUser, but as Emacs users seem to hang out here more often, this is the place I chose.
EDIT: There are some websites saying I can use WhizzyTeX with Carbon Emacs on mac os x, but some places say I cannot (see for example this pdf document, page 27, which says that "* whizzytex: http://cristal.inria.fr/whizzytex/ mode in latex with ocaml good fo linux, should also work in cygwin, doe not work on osx"). So I am really confused...
If anyone is interested, I managed to make it. It is a bit slow and I think some files have issues, but in any case, it works!
The trick is to do what is explained here except for step 4. What I did instead was put the whizzytex.sty file in the same place as whizzytex.el and whizzytex (see step 5 in the article) and then I opened the file whizzytex (the one without extension), and where it says:
name (or full path) of the dump latex2e package file (without the extension)
PACKAGE=whizzytex.sty
I changed it to the path where I put whizzytex.sty. In my case I have:
PACKAGE=/Users/viviannevilar/.emacs.d/packages/whizzytex.sty
I hope this is useful for someone :)
You can install with the software distribution system Macports:
sudo port install tex-whizzytex
You only have to set up your emacs configuration files afterwards.
Have fun!
According to this site (scrolled about 3/4's the way down) it says that it can be installed on Mac OS. It pretty much just says:
make
sudo make install

Resources