Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 2.1 KB

emacs-compiling.org

File metadata and controls

53 lines (50 loc) · 2.1 KB

Very rough notes on compiling on Debian w/Tree-sitter

Problem with native compilation on Debian/Ubuntu?

./configure --without-compress-install \
            --with-native-compilation \
            --with-json \
            --prefix /home/hugh/.local/ \
            --no-create \
            --no-recursion \
            --with-pgtk \
            --with-xml2 \
            --with-tree-sitter
  • That compile worked after adding a few more packages. Wow, was bootstrap the solution?
  • Add tree-sitter
    • Had to export LD_LIBRARY_PATH
    • After that, had to add to /etc/ld.so.conf.d/usr-local.conf & run ldconfig

Run-or-raise

  • Windowclass not being caught correctly – keeps being set to just “emacs”
    • https://emacs.stackexchange.com/questions/60168/how-can-i-set-wm-class-for-emacs-27
    • Used the solution there:
    • Script in my_emacs.sh in ~/bin:
      #!/bin/bash
      
      # emacs.sh:
      # call as ./emacs.sh [<file1>] [...]
      
      flock "/run/lock/emacs-wmclassfix-$USER" bash -s "$@" <<'EOF' 
      {
              emacsclient --no-wait --create-frame "$@" ||
              exec emacs --name MyEmacs -f server-start "$@"
      } &
      EOF
              
    • Run-or-raise looks for MyEmacs
    • Emacs desktop shortcut now called MyEmacs, and invokes ~/bin/my_emacs.sh
    • Seems to work

Eglot not working for python scripts – no problem starting up, but does not find definitions

  • Aha, need to install pylsp globally
  • Debian testing:
    apt-get install '^python3-pylsp[a-z-]*$’