How do I start Atom editor on dev mode? - atom-editor

I want to Modify ex-mode package
I tried below commands, but atom -d . does not work.
This command does not open atom window.
How can I open atom with dev mode?
Commands:
export ATOM_REPOS_HOME=~/github/atom
apm dev ex-mode
cd ~/github/atom/ex-mode
atom -d . # this command does not work

With atom --dev . you just open the folder that you are in in dev mode.
You will se a red message on the middle of the status bar.
If you want to modify the package you can copy into ~/.atom/dev/packages/<package-name> and you will be able to enable/disable both.

Related

modifying main menu of jupyter lab

I'm trying to modify the main menu of jupyter lab through jupyterlab extension. What I want to do is to remove or collapse all tabs into one. As I didn't find any explanation on that I tried to follow a tutorial to work with menu tabs: https://github.com/jupyterlab/extension-examples/tree/master/main-menu
However, I'm not being able to reproduce it. I run these commands on the terminal (inside the main-menu folder):
python -m pip install -e .
# install your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# build the TypeScript source after making changes
jlpm run build
# start JupyterLab
jupyter lab
But the "Main Menu Example" tab never appears.
What could it be? some cache information that I need to clean?

How to run atom from a directory in windows

I want to open Atom editor from a directory like I do with VS code or git bash as shown in the image
For that you need to add atom to your system path.
To do that ,
1)Open the run dialog (win + r), type "SystemPropertiesAdvanced.exe" and hit enter. Here you should select "Environment Variables..." and edit the Path for your user.
2)Select and edit the variable path copy add this command C:\Users\<username>\AppData\Local\atom\bin in the the environment variable.
3)Now open your git bash in the desired directory and run atom.1 .

Atom won't start from the command line

I updated OSX to High Sierra and my Atom stopped working from the command line.
$ atom .
FSPathMakeRef(/Applications/Atom.app) failed with error -36.
I a have uninstalled Atom and reinstalled Atom and ran "Install Shell Commands". :/
any suggestions?
Run Atom by clicking on the icon in the Applications folder. Once Atom is running go to the Atom menu and click on the "Install Shell Commands". Next time you want to run atom, type atom on a terminal command line. If this doesn't work try putting the following statement in your .bash_profile
alias atom="Applications/Atom.app/Contents/MacOs/Atom"

Opening the atom editor from iTerm2 window is displaying - 'zsh: command not found: atom'

Just installed iTerm2 with oh-my-zsh, with atom already installed..
I have cloned a git repo of mine to use on an older laptop and for some reason oh-my-zsh is not opening my atom on the usual command.
➜ LandingPage git:(master) atom .
zsh: command not found: atom
Tried rectifying it by accessing and changing the .zshrc file but permission is denied. Anyone any suggestions?
Thanks,
Ant
As per this question/answer it looks like atom may not have created a symlink to the atom command.
This has nothing to do with zsh -- the first argument is just telling you the shell, the information after it is the error.
For example on my machine (which doesn't have atom) when running zsh and trying to open a file with atom I get zsh: command not found: atom. When I try the same command with bash, I get bash: atom: command not found.
Let me know if the above link doesn't work! Hopefully this helps.

elm : install elm format extension

I have installed elm-format package (using amp install elm-format) and I want to run it from the command line , example elm-format mypage.elm
In order to run it from the command line it should be available in one of the environment path let's say usr/local/bin while the elm-format directory is installed in the following path Users/myuser/.atom/packages and none is available in env path
what should I move to the PATH (usr/local/bin) , is the whole folder or an executable file
note : when i run ls Users/myuser/.atom/packages/elm-format i get the followings :
CHANGELOG.md README.md keymaps menus src
LICENSE.md example lib package.json
I will answer my question since I have solved it.
first you have to install the elm-format binary file using your browser form the following URL
after installing the binary file extract it add the path to the environment path
for windows user add elm-format.exe or mac user add elm-format
since I am a mac user I used the below command to add it :
mv ~/Download/elm-format /usr/local/bin/elm-format
after installing the binary now we need to install elm-format extention for the appropriate editor
since I am using atom editor I have used the following command apm install elm -format
now we can used elm-format command line to format the elm page
command line : elm-format pagename.elm
According to npm website You could install elm-format by npm install -g elm-format.
For anyone using VS Code (on a Mac / Linux system):
1) Choose Download ZIP in the 'Clone or Download' dropdown on the elm-format Github repo.
2) To move the elm-format executable to your 'PATH', open the Terminal application and enter the following command:
mv ~/Downloads/elm-format /usr/local/bin/elm-format
3) Open VS Code and install the extension elm-format.
4) Still in VS Code, open User Settings. (Do this by pressing CMD + SHIFT + P to open the available commands search bar and type User Settings -- press enter. Alternatively, you can use the shortcut CMD + , to open the User Settings.)
5) In the file that shows up on the right side of the editor (your personal settings overrides), add the following line:
"elm-format.formatOnSave": true
Save.
Cheers!
For Atom configures: https://atom.io/packages/language-elm for Syntax highlighting and autocompletion, for auto format on saving https://atom.io/packages/elm-format
For the others IDE https://guide.elm-lang.org/install.html (VScode, Atom, Sublime, Vim,...)

Resources