Custom themes in emacs 24.2.1 on Windows causing error - windows

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.

Related

VS Code on MacOS Mojave

I installed VS Code via Anaconda Navigator to program in Python and C. It works pretty well but I can't run the active file with the integrated terminal. So far it's not that bad because I can just use it as normal text editor and use my normal shell, but I want to use the debugging features built in VS Code but I can't compile with it directly...
It just says ...: Permission denied.
Is it possible to fix this without running VS Code as root?
Thank you for your help!

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.

Not able to use the extensions on visual studio code

I want to use Visual Studio Code in Windows 10.
As a user of vim editor, I have been used to coding in way of vim.
So i want to install the amVim extension on Visual Studio Code.
Issue 1 :
it keep saying "installing" after i clicked "install".
Issue 2 :
Then i went to the github page of amVim and download the file and put it into .vscode/extensions/. However, when i started to use it to code, it showed many warning:
when i try to delete something:
command 'amVim.backspace' not found
when i try to escape the insert mode:
command 'amVim.escape' not found
it didn't work at all!
then i change to ubuntu and download the version for linux. it works well. i can download the extension.
how can i fix this problem with Windows ?
I have also been trying to use vscode but really like to input and edit using vim commands. I have tried at least three different vim emulators on vscode and have encountered the problem you describe as well as some more serious freezing problems. If I install either amVim or vimStyle, my entire system will block if it ever enters the suspend state. I did some anecdotal experimentation and if I disabled the the plugins my system would no longer freeze. I have been using the Vim plugin by vscodevim and so far things are stable. I did encounter the same error messages about backspace and other commands but only when I was on Ubuntu. It would seem to be early times for associating vscode with vim style input.

Windows emacs configuration

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.

Flash MX projection works on XP but not on windows 7

I'm not sure if this is the right place to ask, seeing as I don't currently have any code to share, but perhaps someone has an insight.
I have a very old Flash MX projection (.exe file) that was written and compiled in flash MX 2004. It's a simple interactive app - a test where a user picks an answer to a question and pushes ENTER to move to the next question.
The projection works fine on WinXP SP3 but doesn't work in win7, failing with a "class not registered" error.
It does work after I install flash player activex (I tried installing the latest, and also legacy version 6 r71), but then it doesn't register any keyboard commands and crashes a short while after a key is pressed.
Any idea what can be causing this?
So far I've tried fiddling with IE security settings, disabling DWM and windows themes, compatibility settings, etc., with no luck.
Also, despite the fact that the compiled projection is supposed to have all necessary components to run inside, it doesn't run if flash.ocx isn't registered. Isn't that weird?
Any help will be appreciated. I know this is old stuff and no one promises compatibility etc. And I don't even have the code as of now (not sure I can find it; assume I can't) - but this app is somewhat important to my company and this really seems like a "small" issue - if I could just find it...
Update - it kinda works if install the latest flash player and run it in compatibility mode - but it hangs after about a minute, regardless of what i do.
if i run it without compatibility mode, it doesn't run with a "library not registered" error.
You might want to repackage it.
Extract SWF from projector executable, for example, using this tool.
Get the newest standalone Flash Player and check if your .swf-file works with it.
Now export new projector file.
If this doesn't work for you, the only other way to do this is to recompile your .swf from source.
I agree with Ale's solution.
Have you tried Window's compatibility options to run the .exe as it would in an older compatibility mode ? This may work.

Resources