In my for ever long task of achieving Emacs and Org-mode configuration nirvana I
stumbled upon the problem of trying to reuse a couple of .tex files I keep as
templates for my (La)TeX exports for Org-mode. As I started to collaborate
more and more in my TeX files, I realized that this setup would also need to
be TeX-wise independent, that is, the exported .tex file should be self
contained and self sufficient, so that I can keep collaborating and other people
can see my work and (hopefully) reproduce whatever I have written without my
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; to test org-cite-new branch: | |
| ;; | |
| ;; 1. run 'make' from the org-mode repo wip-cite-new branch root | |
| ;; | |
| ;; 2. run ... | |
| ;; | |
| ;; ... this for basic citation testing: | |
| ;; | |
| ;; emacs -Q -l cite-init.el | |
| ;; |
The general idea is to run an Emacs server as a daemon which clients can quickly connect to via a bash script. The client executes org-capture and the frame closes upon finalizing or aborting the capture.
The first step is to get an Emacs daemon running as a server with your name of choice. For this example, I’m going to use “capture” as the server name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require 'org-archive) | |
| ; Set the function to use for org-archive-default (C-c C-x C-a) | |
| ; (setq org-archive-location (concat org-directory "/archive/%s_archive::")) | |
| ; (setq org-archive-location "archive/archived_%s::") | |
| (setq org-archive-location "::* ARCHIVED") | |
| ; unmap org-archive-subtree | |
| (define-key org-mode-map (kbd "C-c C-x C-s") nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Adapted from https://emacs.stackexchange.com/questions/8045/org-refile-to-a-known-fixed-location | |
| (defun my/refile (file headline &optional arg) | |
| "Refile to a specific location. | |
| With a 'C-u' ARG argument, we jump to that location (see | |
| `org-refile'). | |
| Use `org-agenda-refile' in `org-agenda' mode." | |
| (let* ((pos (with-current-buffer (or (get-buffer file) ;Is the file open in a buffer already? | |
| (find-file-noselect file)) ;Otherwise, try to find the file by name (Note, default-directory matters here if it isn't absolute) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # This script starts emacs daemon if it is not running, opens whatever file | |
| # you pass in and changes the focus to emacs. Without any arguments, it just | |
| # opens the current buffer or *scratch* if nothing else is open. The following | |
| # example will open ~/.bashrc | |
| # ec ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <---TUTORIAL FOR CREATING XCURSOR THEMES.---> | |
| <---By ThEOnE @ kde-look---> | |
| <---My_foros@yahoo.com.ar--> | |
| _______________________________________________________________________________________ | |
| | | | |
| | First of all, let me tell you that everything I know I've learned it by inspecting | | |
| | some xcursor themes like jaguarx, and others. | |