• 1 Post
  • 32 Comments
Joined 1 year ago
cake
Cake day: October 11th, 2023

help-circle



  • you can do this with an Overlay, if you know where the link starts and ends. For example I have the buffer README.org

    #+title: hypop - emacs minibuffer-frame + hyprland
    
    * Demo
    https://www.youtube.com/watch?v=jXRt598HqCY
    
    

    the first character of the link is the 60th and the last is the 103rd. So I could write

    (with-current-buffer "README.org"
      (overlay-put (make-overlay 60 103) 'display "link"))
    

    Clicking the “link” text still opens YouTube as expected.

    To do this all over a buffer you’d want to add a font-lock rule based on a regular expression like browse-url-button-regexp.

    If you only need it in Org files, there’s probably some machinery to facilitate that as well


  • M-x list-colors-display shows all the valid color strings Emacs knows about in the current session.

    Standard GUI Emacs and newer terminals like Alacritty can show All the colors (16 million), these are hex codes. Not all of them are named, but each name is associated with one hex color.

    The 256 column is for terminals/displays that only show 256 colors, like gnome-terminal (i think. xterm-256color is a common terminal type for compatibility). These are named but the actual visual color values are set in the terminal config.

    Likewise, 16 refers to original 16 color displays of later physical terminals. This is about the lower limit of colors to define for a visually distinct theme, for in my opinion. On some terminals/systems, the “bright” variants (8-16) are implemented as bolded forms of colors 0-7 respectively.

    An example of an 8 color display is the Linux console, which you can reach with ctrl+alt+f4 or other function key between 2 and 6 inclusive on most Linux systems. Emacs does not look good on this display in most cases, but it’s usable.











  • Yes. It’s worth it.

    If you’ve ever tweaked your Doom config, you’re already writing elisp. Going from setting options to writing new modes will certainly take time, but lisp is a language that builds on itself.

    In fact, Emacs+elisp is one of the best systems for learning by doing. C-h f, C-h v, C-x C-e, etc will get you far. The built in tutorial is absolutely worth going thru, and understanding lisp will improve your understanding of other languages as well.



  • In any buffer C-z (control + Z) temporarily disables evil-mode in that buffer. C-z again brings it back.

    For a more permanent solution: go to $DOOMDIR/init.el, find the line that says (evil +everywhere), comment it out (add a semicolon in front). Then doom sync

    Emacs has a built in tutorials to help with basic movement/editing, and C-h k (that’s control + H then K) tells you what any key does.





  • MitchellMarquez42@alien.topBtoEmacsEmma the Emacs Unicorn
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Some people wear glasses but most do not.

    Interesting - at least 90% of people I’ve ever known in real life wear glasses. In fact at the moment I’m the only one who doesn’t and I should probably get some eventually.

    Maybe the human race is just getting worse at seeing and we’re coping by trying to make the workaround seem cool and attractive.