Skip to content

Instantly share code, notes, and snippets.

@neverkas
Last active October 6, 2023 15:11
Show Gist options
  • Save neverkas/43a6cbcc92bf9f24561fa450f1fbbdee to your computer and use it in GitHub Desktop.
Save neverkas/43a6cbcc92bf9f24561fa450f1fbbdee to your computer and use it in GitHub Desktop.
Emacs Fixed Issues

Install Emacs29

References

Problem

emacs29 libXaw… configure: error: No X toolkit could be found.

Solution

cd /tmp \
&& git clone --depth=1 --single-branch --branch emacs-29 https://github.com/emacs-mirror/emacs.git \
&& sudo aptitude install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \
     libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \
     libjansson-dev libharfbuzz-dev libharfbuzz-bin
&& cd emacs && ./autogen.sh && ./configure && sudo make install

Conflict between Emacs27 and Emacs28

References

kelleyk/ppa-emacs#24

Problem

dpkg: error processing archive /var/cache/apt/archives/emacs28-common_28.1~1.git5a223c7f2e-kk1+20.04_all. deb (–unpack): trying to overwrite ‘/usr/include/emacs-module.h’, which is also in package emacs27-common 27.1~1.git86d 8d76aa3-kk2+20.04 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Solution

jelou@jelou-Lenovo-B570:~$ sudo dpkg -P emacs27 emacs27-common
dpkg: warning: ignoring request to remove emacs27 which isn't installed
dpkg: dependency problems prevent removal of emacs27-common:
 emacs27-el depends on emacs27-common.

dpkg: error processing package emacs27-common (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 emacs27-common
jelou@jelou-Lenovo-B570:~$ sudo dpkg -P emacs27-el
(Reading database ... 475783 files and directories currently installed.)
Removing emacs27-el (27.1~1.git86d8d76aa3-kk2+20.04) ...
jelou@jelou-Lenovo-B570:~$ sudo dpkg -P emacs27-common
(Reading database ... 474294 files and directories currently installed.)
Removing emacs27-common (27.1~1.git86d8d76aa3-kk2+20.04) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...

Org Mode Asert Version

References

syl20bnr/spacemacs#15896 (comment)

Problem

Opening an org file throws following error

(invalid-function org-assert-version)

Solution

1) Remove Org Mode from Emacs

`cd ~/.emacs.d; rm -rf elpa/28.2/develop/org-9*`

2) Start Emacs as -Q mode

start emacs with emacs -Q

3) Evaluate on emacs

;; evaluate (with C-j) the following elisp code

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(setq package-user-dir
      (expand-file-name "develop"
                        (expand-file-name emacs-version
                                          (expand-file-name "elpa"
                                                            user-emacs-directory))))
(package-refresh-contents)
(package-install 'org)

4) Restart Emacs normally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment