I have Emacs installed on an internal PC in the organization that is not open to the Internet.
For the sake of that question I'd like to install the "auto-complete" package.
I have downloaded a tar file from MELPA and a zip file from GitHub and copied them to my organization PC.
Now how can I install the auto-complete package using either the tar or zip file?
By the way I see in MELPA that the auto-complete package depends on the
pop-up 0.5.0 package.
Should I install that before?
See C-h f package-install-file
And yes, you will need to manually install any dependencies first, if Emacs will not be able to fetch them on its own.
Related
Let's say that I have already created a virtualenv project by virtualenv venv. What is the best way to add this project to virtualwrapper? The way I can think of is creating a virtualwrapper folder, figuring out package dependencies, put the virtualenv project directory into virtualwrapper folder, and then install necessary packages. Is possible to avoid this tedious process?
No, virtualenvs are not portable, you cannot move existing virtualenv to $HOME/.virtualenvs where virtualwrapper stores it virtualenvs. Recreating is the only way.
There is one thing you can simplify — list installed projects with their versions and reinstall exactly that versions:
# In the venv
pip freeze > requirements.txt
deactivate
# Activate a new virtualwrapper-managed venv
workon newenv
pip install -r requirements.txt
I'm developing an extension in vscode, and using vsce to package it into a .vsix file.
I noticed a typo in my description in my extension's package.json, noticeable when the extension is installed and loaded in the extension tab. So I fixed it and re-ran vsce package in ~/extension_name/client/ and re-installed the extension, but the typo remains.
I've double checked I'm not installing the wrong .vsix file. I've ran npm install in ~/extension_name/client/. I've even committed my changes to a branch in git, downloaded that branch and packaged it, no luck.
Do I need to run another command to get vsce to realise there are changes to include? How can I determine what version of the code vsce is packaging up?
I've had the same issue in the past, where I repackaged an extension with the same version and it didn't get installed properly.
VSCode installs extensions to ~/.vscode/extensions, so you can inspect the code in your extension's directory there. I think VSCode is just failing to overwrite the existing extension there, so try deleting the extension within that folder and then installing the .vsix again.
To see the contents of the .vsix file, you can change the file extension to .zip. (See https://blogs.msdn.microsoft.com/quanto/2009/05/26/what-is-a-vsix/)
For VSCode extensions, there should be an 'extension' folder inside it which has all of your code.
Is it necessary to upload venv folder that itself contains 100's of files along with other folders and files of the same project to GitHub?
Simple answer no. In your gitignore file add the venv to ignore all the files inside your venv fold. Basically your venv fold store all the dependency for your projects, you could use pip freeze to generate the requirement.txt which others can use this file to reproduce the same environment as you did. Plus, the files inside your venv will be huge because it contains entire packages you installed.
You don't have to do that. What you can do is :
Remember your project python version.
Generate your Django project dependencies file requirement.txt.
-Create requirement.txt file use: pipreqs /path/to/your/project/ (I recommend pipreqs, it creates a project level requirement.txt file. You can also use pip freeze or other commands)
-Install all dependencies from it: pip install -r requirements.txt, make sure pip belongs to your virtualenv python other than OS default pip
Then you can easily install a brand new virtual env and install all dependencies.
I downloaded Notepad++ from https://notepad-plus-plus.org/repository/7.x/7.5.1/npp.7.5.1.Installer.x64.exe.
And I installed the same. Now I need to install few plugins, but in the menu option Plugins there are only Converter and MIME tools listed, but not Plugin Manager.
Edit: They have removed Plugin Manager with the version 7.5. Still it can be added by following #johnny 's instruction in the best solution.
P.S: The plugin manager is only supporting the 32-bit version.
As of Notepad++ version 7.5, plugin manager is no longer shipped with Notepad++
From the Notepad++ release notes:
You may notice that Plugin Manager plugin has been removed from the official distribution. The reason is Plugin Manager contains the advertising in its dialog. I hate Ads in applications, and I ensure you that there was no, and there will never be Ads in Notepad++.
A built-in Plugin Manager is in progress, and I will do my best to ship it with Notepad++ ASAP.
If the above doesn't put you off, and you want to proceed and install the plugin manager anyway, it looks like there's a GitHub repository for nppPluginManager - though I haven't personally used it, so cannot comment on it's validity.
The nppPluginManager installation instructions state:
To install the plugin manager, simply download (links below) the .zip, and place the PluginManager.dll file in the Notepad++ plugins directory, and the gpup.exe in the updater directory under your Notepad++ program directory. (e.g. "C:\Program Files\Notepad++\updater")
In fact, if you prefer, you can just add the PluginManager.dll to the plugins directory, then do a reinstall of Plugin Manager from the plugin itself, which will place the file in the right place! Of course, if you're already using an earlier version of the plugin manager, you'll be able to just update from the update tab (or when you get the notification that the update has happened).
The GitHub repository also contains the latest release.
Follow the steps given below:
Download Plugin Manager from here.
You can find the most updated version in the release section in the Git repository:
Extract the contents of zip file under "C:\Program Files\Notepad++"
Restart Notepad++
That's it !!
To install a plugin without Plugin Manager:
Download your plugin and extract contents in a folder. You will find a .dll file inside. Copy it.
Open C:\Program Files (x86)\Notepad++\pluginsand paste the .dll
Run Notepad++
You can download the latest Plugin Manager version PluginManager_latest_version_x64.zip.
Unzip the file.
Copy
PluginManager_latest_version_x64.zip\updater\gpup.exe
into
path-to-installed-notepad\notepad++\updater\
Copy
PluginManager_latest_version_x64.zip\plugins\PluginManager.dll
into
path-to-installed-notepad\notepad++\plugins\
Start or restart Notepad++.
Enjoy!
The way to install plugins seems to have changed, the previous answers here did not work for me.
The current (checked with 7.8.1) way to install plugins is to install it in a sub folder:
The plugin (in the DLL form) should be placed in the plugins subfolder of the Notepad++ Install Folder, under the subfolder with the same name of plugin binary name without file extension. For example, if the plugin you want to install named myAwesomePlugin.dll, you should install it with the following path: %PROGRAMFILES(x86)%\Notepad++\plugins\myAwesomePlugin\myAwesomePlugin.dll
from https://npp-user-manual.org/docs/plugins/
So PluginManager.dll goes into PluginManager sub folder.
Notepad v7.6 includes a Plugin Admin and from this you can install Plugin Manager(note1) but it doesn't work fine with npp v7.6(note2)
On the other hand Plugin Admin is only available on NPP "Setup version" and after following conditions
on Custom installation, "Plugin Admin" checkbox is enabled
on Choose Components "Don't use %APPDATA%" checkbox is disabled
Plugin Admin will place plugins at C:\ProgramData\Notepad++\plugins
(note1)Installation from Plugin Admin is not complete and \updater\gpup.exe is missing
(note2) Plugin manager is not using new plugins path and folder structure; from version 7.6 npp Plugins will be stored in individual folders (having same name than file.dll)
If you want to use npp7.6 portable, you can copy updater folder from Setup version, copy plugins from Setup version, or copy Plugins from npp v<7.6 and place each one in a individual folder.
Latest version of Notepad++ got a new built-in plugin manager which works nicely.
My system was 32 bit. I removed and re-installed Notepad++. After that from below got PluginManager_v1.4.12_UNI.zip and extracted it.
https://github.com/bruderstein/nppPluginManager/releases
I created a folder called PluginManager at C:\Program Files (x86)\Notepad++\plugins\ and copied PluginManager.dll into it. I restarted my notepad++ and now I see Plugin Manager.
A direct process to install / configure Plugin Manager :
Download the latest version of NotepadPlus Plugin Manager from the
official Github handle.
Extract the zip file.
Copy the pluginmanager.dll file and paste in C:\Program Files\Notepad++\Plugins\PluginManager directory.
Restart the Notepad++
Note: Create the
PluginManager directory if it is not present.
Notepad++ v8.1.2 has it where it used to be
I changed the plugin folder name. Restart Notepad ++
It works now, a
It can be installed with one command for N++ installer version:
choco install notepadplusplus-nppPluginManager
How to install plugins to the Sublime Text editor?
I would like to install Emmet plugin to Sublime Text 2 editor.
You should have a Data/Packages folder in your Sublime Text 2 install directory.
All you need to do is download the plugin and put the plugin folder in the Packages folder.
Or, an easier way would be to install the Package Control Plugin by wbond.
Just go here: https://sublime.wbond.net/installation
and follow the install instructions.
Once you are done you can use the Ctrl + Shift + P shortcut in Sublime, type in install and press enter, then search for emmet.
EDIT: You can now also press Ctrl + Shift + P right away and use the command 'Install Package Control' instead of following the install instructions. (Tested on Build 3126)
Install the Package Control first.
The simplest method of installation is through the Sublime Text console. The console is accessed via the Ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.
Code for Sublime Text 3
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Code for Sublime Text 2
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
For the up-to-date installation code, please check Package Control Installation Guide.
Manual
If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:
Click the Preferences > Browse Packages… menu
Browse up a folder and then into the Installed Packages/ folder
Download Package Control.sublime-package and copy it into the
Installed Packages/ directory
Restart Sublime Text
Usage
Package Control is driven by the Command Pallete. To open the pallete, press Ctrl+Shift+p (Win, Linux) or CMD+Shift+p (OSX). All Package Control commands begin with Package Control:, so start by typing Package.
Without Package Manager
I highly recommend using the Package Manager as described in other answers as it's far more convenient for both installing and updating. However, sometimes plugins are not in the directory, so here is the manual approach.
First off, find your Packages directory in your Application Support/Sublime Text 2 directory, for example:
~/Library/Application Support/Sublime Text 2/Packages
Now, take your Plugin folder (which you can download as a zip from GitHub, for example) and simply copy the folder into your Packages directory:
cp ~/Downloads/SomePlugin-master/
~/Library/Application\ Support/Sublime\ Text\ 2/Packages/SomePlugin`
Restart Sublime Text 2 and boom! you're done.
With Package Manager
Refer to one of the other answers here or go to the Package Manager home page.
Bonus Points
If there's a plugin that isn't in the Package Manager, why not submit it on behalf of the author by following the steps found here.
Install the Package Manager as directed on https://packagecontrol.io/installation
Open the Package Manager using Ctrl+Shift+P
Type Package Control to show related commands (Install Package, Remove Package etc.) with packages
Enjoy it!
You need to install Package Control first (from the Python console in Sublime. Visit http://wbond.net/sublime_packages/package_control for more info), and then install emmet from their repository.
According to John Day's answer
You should have a Data/Packages folder in your Sublime Text 2 install directory. All you need to do is download the plugin and put the plugin folder in the Packages folder.
In case if you are searching for Data/Packages folder you can find it here
Windows: %APPDATA%\Sublime Text 2
OS X: ~/Library/Application Support/Sublime Text 2
Linux: ~/.Sublime Text 2
Portable Installation: Sublime Text 2/Data
The instruction has been tested on Mac OSx Catalina.
After installing Sublime Text 3, install Package Control through Tools > Package Control.
Use the following instructions to install package or theme:
press CMD + SHIFT + P
choose Package Control: Install Package---or any other options you require.
enter the name of required package or theme and press enter.
Installation code chunks for vanilla Sublime may change in the future.
This link would be the safest place to install plugin support to Sublime Text 2.
For Sublime Text 3 this link works has the code.