caiorss / emacs-elisp-programming Goto Github PK
View Code? Open in Web Editor NEWTutorial about programming Elisp and Emacs text editor customization.
Home Page: http://caiorss.github.io/Emacs-Elisp-Programming
License: The Unlicense
Tutorial about programming Elisp and Emacs text editor customization.
Home Page: http://caiorss.github.io/Emacs-Elisp-Programming
License: The Unlicense
Good work :)
But, no updates?
I tried to convert Elisp_Programming.org to pdf,
But could not succeed :(
Does (position) need to be defined by some library?
ELISP> (position 2 '(5 6 7 8))
*** Eval error *** Symbol's function definition is void: position
I'm using emacs version 24.4.90.1
Hi,
Yr function plist->alist creates a list of lists rather than a list of cons cells. Should be something like:
(defun plist->alist (plist)
(if (null plist)
'()
(cons
(cons (car plist) (cadr plist))
(plist->alist (cddr plist)))))
---Fran
in section
Key Bindings by Task
2-Buffers
C-x Move to next buffer
C-x Move to previous buffer
after C-x missing key LEFT/RIGHT ?
(defun buffer-out ()
(interactive)
(let ((buffer (current-buffer))
(value (buffer-string)))
(kill-buffer buffer)))
(defun buffer-string-out ()
(interactive)
(buffer-string))
(defun edit-string (string)
(interactive)
(let ((buffer "*edit-string*"))
(get-buffer-create buffer)
(switch-to-buffer buffer)
(set-buffer buffer)
(let ((inhibit-read-only nil))
(insert string)
(fundamental-mode)
(local-set-key (kbd "C-c C-c") 'buffer-out))))
;; (add-hook 'kill-buffer-hook 'buffer-string-out))))
(setq ok (edit-string "OK"))
I am trying to get this work, could you point me to a solution to edit string, and return the string back?
In the assoc list segment get-value
is called, but it's not a built-in that I can find?
(defun make-shell-interface (&rest params)
;;<snip>
(let
((name (plist-get params :name ))
(type (plist-get params :type))
(path (plist-get params :path))
(buffer (plist-get params :buffer)))
(list
(cons 'name buffer) ;; <== should be (cons 'name name)
(cons 'type type)
(cons 'path path)
(cons 'buffer buffer))))
Change the following line from
(cons 'name buffer)
to
(cons 'name name)
Will it be updated?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.