Notices: This section not yet converted to new layout. Download stats are rolling back out.

Emacs

26.2.0.20190417

Package test results are passing.

This package was approved as a trusted package on 4/17/2019.

GNU Emacs is an extensible, customizable text editor—and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing. Since the full version of Emacs installer is heavy with a lot of small unneeded files (help files, sometimes even source code), the unpacking size is big and the unpacking speed is horribly slow. This lite version doesn't contain those files. Thus give a nice boost for unpacking footprint and speed.

To install Emacs, run the following command from the command line or from PowerShell:

C:\> choco install emacs

To upgrade Emacs, run the following command from the command line or from PowerShell:

C:\> choco upgrade emacs

Files

Hide
  • tools\install.psm1 Show
    $packageName = 'emacs'
    
    $majorVersion = '26'
    $minorVersion = '2'
    
    $emacsNameVersion = "$($packageName)-$($majorVersion).$($minorVersion)"
    $installDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition) + '/' + $packageName
    
    $FullPackageArgs = @{
        packageName    = $packageName
        unzipLocation  = $installDir
        url            = "https://ftp.gnu.org/pub/gnu/emacs/windows/emacs-$($majorVersion)/$($emacsNameVersion)-i686.zip"
        url64bit       = "https://ftp.gnu.org/pub/gnu/emacs/windows/emacs-$($majorVersion)/$($emacsNameVersion)-x86_64.zip"
        checksum       = '114bae98653eb27a7755df92fa17fb7c7e1ff00b188f4aa4bef8033805306d4a'
        checksumType   = 'sha256'
        checksum64     = '715b142278596b77da633e7ff86dd24d10ed601c8ece2bcf60a0cafa4dc38c2a'
        checksumType64 = 'sha256'
    }
    
    $NoDepsPackageArgs = @{
        packageName    = $packageName
        unzipLocation  = $installDir
        url            = "https://ftp.gnu.org/pub/gnu/emacs/windows/emacs-$($majorVersion)/$($emacsNameVersion)-i686-no-deps.zip"
        url64bit       = "https://ftp.gnu.org/pub/gnu/emacs/windows/emacs-$($majorVersion)/$($emacsNameVersion)-x86_64-no-deps.zip"
        checksum       = 'a75fcd6702b07edb863e229b283be0cf702fb22058973721325c3f8095c54d18'
        checksumType   = 'sha256'
        checksum64     = 'edd3acfaf3c198f491c8ebcb1b3dbad6fd7f8b894c7787d1ccd95e1d1be6dc18'
        checksumType64 = 'sha256'
    }
    
    $emacsDepsVersion = "emacs-$($majorVersion)"
    
    $DepsPackageArgs = @{
      packageName    = $packageName
      unzipLocation  = $installDir
      url            = "https://ftp.gnu.org/pub/gnu/emacs/windows/emacs-$($majorVersion)/$($emacsDepsVersion)-i686-deps.zip"
      url64bit       = "https://ftp.gnu.org/pub/gnu/emacs/windows/emacs-$($majorVersion)/$($emacsDepsVersion)-x86_64-deps.zip"
      checksum       = '4ff9057d4407f2d1149f158a2920acd09c31eff12a09ba25dc1776a3978f41ad'
      checksumType   = 'sha256'
      checksum64     = '3501e0c7f31cbf98ef7ac5cbbc8bae04ef4a72f52b00898965a8d702c4a5fae7'
      checksumType64 = 'sha256'
    }
    
    function New-ShimHintFiles() {
        # Exclude executables from getting shimmed
        $guiExes = @("runemacs.exe", "emacsclientw.exe")
        $shimExes = @("emacs.exe", "emacsclient.exe")
    
        $guiFilter = "^" + $($guiExes -join "$|^") + "$"
        $shimFilter = "^" + $($shimExes -join "$|^") + "$"
    
        $files = Get-Childitem $installDir -include *.exe -recurse
    
        foreach ($file in $files) {
            if ($file.Name -match $guiFilter) {
                #generate an gui file
                New-Item "$file.gui" -type file -force | Out-Null
            }
            elseif (-not ($file.Name -match $shimFilter)) {
                #generate an ignore file
                New-Item "$file.ignore" -type file -force | Out-Null
            }
        }
    }
    
    Export-ModuleMember -Variable 'FullPackageArgs'
    Export-ModuleMember -Variable 'NoDepsPackageArgs'
    Export-ModuleMember -Variable 'DepsPackageArgs'
    Export-ModuleMember -Function 'New-ShimHintFiles'
    
  • tools\chocolateyInstall.ps1 Show
    Import-Module "$(Split-Path -parent $MyInvocation.MyCommand.Definition)/install.psm1"
    
    Install-ChocolateyZipPackage @NoDepsPackageArgs
    
    Install-ChocolateyZipPackage @DepsPackageArgs -specificFolder 'bin'
    Install-ChocolateyZipPackage @DepsPackageArgs -specificFolder 'etc'
    Install-ChocolateyZipPackage @DepsPackageArgs -specificFolder 'libexec'
    Install-ChocolateyZipPackage @DepsPackageArgs -specificFolder 'ssl'
    
    New-ShimHintFiles
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • The GNU Project

Copyright

GNU General Public License v3.0

Tags

Release Notes

https://www.gnu.org/software/emacs/

Version History

Version Downloads Last updated Status
Emacs 26.1.0.20190416 44 Tuesday, April 16, 2019 approved
Emacs 24.5.0.20150611 14108 Thursday, June 11, 2015 approved
Emacs 24.4.0.20141122 5516 Sunday, November 23, 2014 approved
Emacs 24.3.0.20140722 1826 Monday, July 21, 2014 approved
Emacs 24.3.0.20140721 311 Monday, July 21, 2014 approved
Emacs 24.3.0.20140716 385 Wednesday, July 16, 2014 approved
Emacs 24.3 2345 Wednesday, June 5, 2013 approved
Show More

Discussion for the Emacs Package

Ground rules:

  • This discussion is only about Emacs and the Emacs package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Emacs, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok