The default is the directory ~/.config/emacs. (Note that only the locationsĭirectly in your home directory have a leading dot in the location’sĮmacs can also look in an XDG-compatible location for init.el, ~/.emacs, or ~/.emacs.d/init.el in that order you canĬhoose to use any one of these names. See The Emacs Initialization File.Įmacs looks for your init file using the filenames ~/.emacs.el, 1.Next: Non- ASCII Characters in Init Files, Previous: Terminal-specific Initialization, Up: The Emacs Initialization File 49.4.4 How Emacs Finds Your Init FileĮmacs normally finds your init file in a location under your homeĭirectory. 1.0 ) :latex-compiler ( "xelatex -no-pdf -interaction nonstopmode -output-directory %o %f" ) :image-converter ( "dvisvgm %f -n -b min -c %S -o %O" ) ) ) ( add-to-list ' org-preview-latex-process-alist ' (imagexetex :programs ( "xelatex" "convert" ) :description "pdf > png" :message "you need to install the programs: xelatex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust ( 1.0. ( plist-put org-format-latex-options :scale 2.2 ) ( add-to-list ' org-preview-latex-process-alist ' (dvixelatex :programs ( "xetex" "convert" ) :description "pdf > png" :message "you need to install the programs: xetex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust ( 1.0. "utf8x"))) (add-to-list 'org-latex-packages-alist '("" "unicode-math")) ( after! org Set after the default-packages list anyway ( setq org-latex-packages-alist ' nil ) ( setq org-latex-default-packages-alist ' ( ( "AUTO" "inputenc" t ( "pdflatex" ) ) ( "T1" "fontenc" t ( "pdflatex" ) ) ( "" "graphicx" t ) ( "" "grffile" t ) ( "" "minted" t ) ("dvipsnames,svgnames*,x11names*,table" "xcolor" t) ( "" "longtable" nil ) ( "" "wrapfig" nil ) ( "" "rotating" nil ) ( "normalem" "ulem" t ) ( "" "amsmath" t ) ( "" "amssymb" t ) ( "" "unicode-math" t ) ( "" "mathtools" t ) ( "" "textcomp" t ) ( "" "capt-of" nil ) ( "" "hyperref" nil ) ) ) (add-to-list 'org-latex-default-packages-alist '("" "fontspec" t)) (setq org-latex-inputenc-alist '(("utf8". The screenshot tool is determined by ` org-download-screenshot-method '." ( interactive ) ( let ( (tmp-file "/tmp/screenshot.png" ) ) ( delete-file tmp-file ) ( call-process-shell-command "flameshot gui -p /tmp/" ) Because flameshot exit immediately, keep polling to check file existence ( while ( not ( file-exists-p tmp-file ) ) ( sleep-for 2 ) ) ( org-download-image tmp-file ) ) ) ( defun hz-org-download-screenshot () "Capture screenshot and insert the resulting file. Nullify org-download-screenshot-method by setting it to ` echo ', so that essentially we are only calling (org-download-image org-download-screenshot-file). In flameshot, set filename as "screenshot", and the command as "flameshot gui -p /tmp", so that we always ends up with /tmp/screenshot.png. From My customized org-download to incorporate flameshot gui Workaround to setup flameshot, which enables annotation. (delim "" ) (jump 1 ) ) ( when ( not ( texmathp ) ) ( setq delim "$" ) ( setq jump 2 ) ) ( if ( use-region-p ) ( progn ( setq start ( region-beginning ) ) ( setq end ( region-end ) ) ( narrow-to-region start end ) ( goto-char ( point-min ) ) ( insert ( concat delim "‖" ) ) ( goto-char ( point-max ) ) ( insert ( concat "‖" delim ) ) ( widen ) ) ( progn ( insert ( concat delim "‖‖" delim ) ) ( backward-char jump ) ) ) ) ) ![]() ( defun org-make-bold-math () "If there's a selection - wrap this with ' \symbf ' Also: when not in math mode - enclose the thing in dollars." ( interactive ) ( let (start end "Exports" ) :desc "Dispatch" "d" ' org-export-dispatch ) ) ) ) "Subheadings" ) :desc "Normal" "s" ' org-insert-subheading :desc "Todo" "t" ' org-insert-todo-subheading ) ) ( :prefix ( "e". "Headings" ) :desc "Normal" "h" ' org-insert-heading :desc "Todo" "t" ' org-insert-todo-heading ( :prefix ( "s". ![]() "Math" ) :desc "Bold" "f" ' org-make-bold-math :desc "Blackboard" "b" ' org-make-blackboard-math :desc "Remove" "r" ' org-make-symrm-math :desc "Vert" "v" ' org-make-vert-math ) ( :prefix ( "h". "Insert" ) :desc "Link/Image" "l" ' org-insert-link :desc "Item" "o" ' org-toggle-item :desc "Citation" "c" ' org-ref-insert-cite-link :desc "Footnote" "f" ' org-footnote-action :desc "Table" "t" ' org-table-create-or-convert-from-region :desc "Screenshot" "s" ' org-download-screenshot ( :prefix ( "b". ![]() "Properties" ) :desc "Set" "s" ' org-set-property :desc "Delete" "d" ' org-delete-property :desc "Actions" "a" ' org-property-action ) ) ( :prefix ( "i". ( after! org ( map! :localleader :map org-mode-map :desc "Eval Block" "e" ' ober-eval-block-in-repl ( :prefix "o" :desc "Tags" "t" ' org-set-tags :desc "Roam Bibtex" "b" ' orb-note-actions ( :prefix ( "p".
0 Comments
Leave a Reply. |