Michael Heerdegen writes: > Christopher Miles writes: > >> Here is my Emacs package https://github.com/stardiviner/org-link-beautify > > Without having looked at the code: is the reason of your problem that > the keymap character property at the location of the image points to > something like `image-map' instead of what you expect when you click > there (C-u C-x = should tell you)? > > Michael. Aha, I understand now. Because displaying as inline image, so text-property keymap not working. Thanks for hint. Here is the output of [C-u C-x =] #+begin_example position: 377333 of 458088 (82%), column: 0 character: [ (displayed as [) (codepoint 91, #o133, #x5b) charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x5B script: latin syntax: (] which means: open, matches ] category: .:Base, <:Not at eol, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET 5b" or "C-x 8 RET LEFT SQUARE BRACKET" buffer code: #x5B file code: #x5B (encoded by coding system utf-8-unix) display: by this font (glyph code) ftcrhb:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 (#x3E) Character code properties: customize what to show name: LEFT SQUARE BRACKET old-name: OPENING SQUARE BRACKET general-category: Ps (Punctuation, Open) decomposition: (91) ('[') There are 2 overlays here: From 377333 to 377379 face hl-line priority -50 window # From 377333 to 377378 display [Show] face default keymap [Show] modification-hooks (org-display-inline-remove-overlay) org-image-overlay t There are text properties here: display [Show] font-lock-multiline t fontified t help-echo "LINK: file:Data/Books/mmexport1532255776028.jpg" htmlize-link (:uri "file:Data/Books/mmexport1532255776028.jpg") invisible org-link keymap [Show] mouse-face highlight type org-link-beautify #+end_example So I should define keymap on ~image-map~. But this is global. Is there any other good solution to get around this adding keybinding on global map? Maybe make this ~image-map~ buffer locally? -- [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3